QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsGmlSchema Class Reference

#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< QgsFieldfields (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

QgsError QgsGmlSchema::error ( ) const
inline

Get error if parseXSD() or guessSchema() failed.

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
dataGML data
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: