QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsGmlSchema Class Reference

#include <qgsgmlschema.h>

Inheritance diagram for QgsGmlSchema:
Inheritance graph
[legend]

Public Member Functions

 QgsGmlSchema ()
 
QgsError error () const
 Gets error if parseXSD() or guessSchema() failed.
 
QList< QgsFieldfields (const QString &typeName)
 Gets fields for type/class name parsed from GML or XSD.
 
QStringList geometryAttributes (const QString &typeName)
 Gets 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)
 Gets fields info from XSD.
 
QStringList typeNames () const
 Gets list of dot separated paths to feature classes parsed from GML or XSD.
 

Detailed Description

Definition at line 86 of file qgsgmlschema.h.

Constructor & Destructor Documentation

◆ QgsGmlSchema()

QgsGmlSchema::QgsGmlSchema ( )

Definition at line 53 of file qgsgmlschema.cpp.

Member Function Documentation

◆ error()

QgsError QgsGmlSchema::error ( ) const
inline

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

Definition at line 114 of file qgsgmlschema.h.

◆ fields()

QList< QgsField > QgsGmlSchema::fields ( const QString &  typeName)

Gets fields for type/class name parsed from GML or XSD.

Definition at line 557 of file qgsgmlschema.cpp.

◆ geometryAttributes()

QStringList QgsGmlSchema::geometryAttributes ( const QString &  typeName)

Gets list of geometry attributes for type/class name.

Definition at line 563 of file qgsgmlschema.cpp.

◆ guessSchema()

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 323 of file qgsgmlschema.cpp.

◆ parseXSD()

bool QgsGmlSchema::parseXSD ( const QByteArray &  xml)

Gets fields info from XSD.

Definition at line 75 of file qgsgmlschema.cpp.

◆ typeNames()

QStringList QgsGmlSchema::typeNames ( ) const

Gets list of dot separated paths to feature classes parsed from GML or XSD.

Definition at line 552 of file qgsgmlschema.cpp.


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