| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
Represents a GML schema. More...
#include <qgsgmlschema.h>

Public Member Functions | |
| QgsGmlSchema () | |
| QgsError | error () const | 
| Gets error if parseXSD() or guessSchema() failed.   | |
| QList< QgsField > | fields (const QString &typeName) | 
| Gets fields for type/class name parsed from GML or XSD.   | |
| QStringList | geometryAttributes (const QString &typeName) | 
| Gets list of geometry attributes for type/class name.   | |
| bool | guessSchema (const QByteArray &data) | 
| Guess GML schema from data if XSD does not exist.   | |
| bool | parseXSD (const QByteArray &xml) | 
| Gets fields info from XSD.   | |
| QStringList | typeNames () const | 
| Gets list of dot separated paths to feature classes parsed from GML or XSD.   | |
Represents a GML schema.
Definition at line 84 of file qgsgmlschema.h.
| QgsGmlSchema::QgsGmlSchema | ( | ) | 
Definition at line 58 of file qgsgmlschema.cpp.
      
  | 
  inline | 
Gets error if parseXSD() or guessSchema() failed.
Definition at line 112 of file qgsgmlschema.h.
| QList< QgsField > QgsGmlSchema::fields | ( | const QString & | typeName | ) | 
Gets fields for type/class name parsed from GML or XSD.
Definition at line 562 of file qgsgmlschema.cpp.
| QStringList QgsGmlSchema::geometryAttributes | ( | const QString & | typeName | ) | 
Gets list of geometry attributes for type/class name.
Definition at line 568 of file qgsgmlschema.cpp.
| bool QgsGmlSchema::guessSchema | ( | const QByteArray & | data | ) | 
Guess GML schema from data if XSD does not exist.
Currently only recognizes UMN Mapserver GetFeatureInfo GML response. Supports only UTF-8, UTF-16, ISO-8859-1, US-ASCII XML encodings.
| data | GML data | 
true in case of success Definition at line 328 of file qgsgmlschema.cpp.
| bool QgsGmlSchema::parseXSD | ( | const QByteArray & | xml | ) | 
Gets fields info from XSD.
Definition at line 80 of file qgsgmlschema.cpp.
| QStringList QgsGmlSchema::typeNames | ( | ) | const | 
Gets list of dot separated paths to feature classes parsed from GML or XSD.
Definition at line 557 of file qgsgmlschema.cpp.