#include <qgsgmlschema.h>
Public Member Functions |
| | QgsGmlSchema () |
| | ~QgsGmlSchema () |
| bool | parseXSD (const QByteArray &xml) |
| | Get fields info from XSD.
|
| bool | guessSchema (const QByteArray &data) |
| | Guess GML schema from data if XSD does not exist.
|
| QStringList | typeNames () const |
| | Get list of dot separated paths to feature classes parsed from GML or XSD.
|
| QList< QgsField > | fields (const QString &typeName) |
| | Get fields for type/class name parsed from GML or XSD.
|
| QStringList | geometryAttributes (const QString &typeName) |
| | Get list of geometry attributes for type/class name.
|
| QgsError | error () const |
| | Get error if parseXSD() or guessSchema() failed.
|
Constructor & Destructor Documentation
| QgsGmlSchema::QgsGmlSchema |
( |
| ) |
|
| QgsGmlSchema::~QgsGmlSchema |
( |
| ) |
|
Member Function Documentation
| QList< QgsField > QgsGmlSchema::fields |
( |
const QString & |
typeName | ) |
|
Get fields for type/class name parsed from GML or XSD.
| QStringList QgsGmlSchema::geometryAttributes |
( |
const QString & |
typeName | ) |
|
Get list of geometry attributes for type/class name.
| 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.
- Parameters
-
- Returns
- true in case of success
| bool QgsGmlSchema::parseXSD |
( |
const QByteArray & |
xml | ) |
|
Get fields info from XSD.
| QStringList QgsGmlSchema::typeNames |
( |
| ) |
const |
Get list of dot separated paths to feature classes parsed from GML or XSD.
The documentation for this class was generated from the following files: