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

Detailed Description

Definition at line 75 of file qgsgmlschema.h.

Constructor & Destructor Documentation

QgsGmlSchema::QgsGmlSchema ( )

Definition at line 60 of file qgsgmlschema.cpp.

QgsGmlSchema::~QgsGmlSchema ( )

Definition at line 72 of file qgsgmlschema.cpp.

Member Function Documentation

QgsError QgsGmlSchema::error ( ) const
inline

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

Definition at line 103 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 570 of file qgsgmlschema.cpp.

QStringList QgsGmlSchema::geometryAttributes ( const QString &  typeName)

Get list of geometry attributes for type/class name.

Definition at line 576 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.

Parameters
dataGML data
Returns
true in case of success

Definition at line 335 of file qgsgmlschema.cpp.

bool QgsGmlSchema::parseXSD ( const QByteArray &  xml)

Get fields info from XSD.

Definition at line 91 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 565 of file qgsgmlschema.cpp.


The documentation for this class was generated from the following files: