QGIS API Documentation
3.0.2-Girona (307d082)
|
#include <qgsgmlschema.h>
Public Member Functions | |
QgsGmlSchema () | |
QgsError | error () const |
Get error if parseXSD() or guessSchema() failed. More... | |
QList< QgsField > | fields (const QString &typeName) |
Get fields for type/class name parsed from GML or XSD. More... | |
QStringList | geometryAttributes (const QString &typeName) |
Get list of geometry attributes for type/class name. More... | |
bool | guessSchema (const QByteArray &data) |
Guess GML schema from data if XSD does not exist. More... | |
bool | parseXSD (const QByteArray &xml) |
Get fields info from XSD. More... | |
QStringList | typeNames () const |
Get list of dot separated paths to feature classes parsed from GML or XSD. More... | |
Definition at line 82 of file qgsgmlschema.h.
QgsGmlSchema::QgsGmlSchema | ( | ) |
Definition at line 53 of file qgsgmlschema.cpp.
|
inline |
Get error if parseXSD() or guessSchema() failed.
Definition at line 109 of file qgsgmlschema.h.
QList< QgsField > QgsGmlSchema::fields | ( | const QString & | typeName | ) |
Get fields for type/class name parsed from GML or XSD.
Definition at line 553 of file qgsgmlschema.cpp.
QStringList QgsGmlSchema::geometryAttributes | ( | const QString & | typeName | ) |
Get list of geometry attributes for type/class name.
Definition at line 559 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 |
Definition at line 319 of file qgsgmlschema.cpp.
bool QgsGmlSchema::parseXSD | ( | const QByteArray & | xml | ) |
Get fields info from XSD.
Definition at line 75 of file qgsgmlschema.cpp.
QStringList QgsGmlSchema::typeNames | ( | ) | const |
Get list of dot separated paths to feature classes parsed from GML or XSD.
Definition at line 548 of file qgsgmlschema.cpp.