QGIS API Documentation  2.5.0-Master
 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>

Inheritance diagram for QgsGmlSchema:
Inheritance graph
[legend]

Public Member Functions

 QgsGmlSchema ()
 
 ~QgsGmlSchema ()
 
bool parseXSD (const QByteArray &xml)
 Get fields info from XSD. More...
 
bool guessSchema (const QByteArray &data)
 Guess GML schema from data if XSD does not exist. More...
 
QStringList typeNames () const
 Get list of dot separated paths to feature classes parsed from GML or XSD. More...
 
QList< QgsFieldfields (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...
 
QgsError error () const
 Get error if parseXSD() or guessSchema() failed. More...
 

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: