QGIS API Documentation
2.14.0-Essen
|
The QgsOgcUtils class provides various utility functions for conversion between OGC (Open Geospatial Consortium) standards and QGIS internal representations. More...
#include <qgsogcutils.h>
Static Public Member Functions | |
static QColor | colorFromOgcFill (const QDomElement &fillElement) |
Parse XML with OGC fill into QColor. More... | |
static QgsExpression * | expressionFromOgcFilter (const QDomElement &element) |
Parse XML with OGC filter into QGIS expression. More... | |
static QDomElement | expressionToOgcFilter (const QgsExpression &exp, QDomDocument &doc, QString *errorMessage=nullptr) |
Creates OGC filter XML element. More... | |
static QgsGeometry * | geometryFromGML (const QString &xmlString) |
Static method that creates geometry from GML. More... | |
static QgsGeometry * | geometryFromGML (const QDomNode &geometryNode) |
Static method that creates geometry from GML. More... | |
static QDomElement | geometryToGML (const QgsGeometry *geometry, QDomDocument &doc, const QString &format, int precision=17) |
Exports the geometry to GML2 or GML3. More... | |
static QDomElement | geometryToGML (const QgsGeometry *geometry, QDomDocument &doc, int precision=17) |
Exports the geometry to GML2. More... | |
static QgsRectangle | rectangleFromGMLBox (const QDomNode &boxNode) |
Read rectangle from GML2 Box. More... | |
static QgsRectangle | rectangleFromGMLEnvelope (const QDomNode &envelopeNode) |
Read rectangle from GML3 Envelope. More... | |
static QDomElement | rectangleToGMLBox (QgsRectangle *box, QDomDocument &doc, int precision=17) |
Exports the rectangle to GML2 Box. More... | |
static QDomElement | rectangleToGMLEnvelope (QgsRectangle *env, QDomDocument &doc, int precision=17) |
Exports the rectangle to GML2 Envelope. More... | |
The QgsOgcUtils class provides various utility functions for conversion between OGC (Open Geospatial Consortium) standards and QGIS internal representations.
Currently supported standards:
Definition at line 42 of file qgsogcutils.h.
|
static |
Parse XML with OGC fill into QColor.
Definition at line 1429 of file qgsogcutils.cpp.
|
static |
Parse XML with OGC filter into QGIS expression.
Definition at line 1468 of file qgsogcutils.cpp.
|
static |
Creates OGC filter XML element.
Supports minimum standard filter according to the OGC filter specs (=,!=,<,>,<=,>=,AND,OR,NOT)
<Filter>QDomElement on success, otherwise null QDomElement
Definition at line 1913 of file qgsogcutils.cpp.
|
static |
Static method that creates geometry from GML.
xmlString | xml representation of the geometry. GML elements are expected to be in default namespace ({<Point>...</Point>) or in "gml" namespace ( <gml:Point>...</gml:Point>) |
Definition at line 97 of file qgsogcutils.cpp.
|
static |
Static method that creates geometry from GML.
Definition at line 36 of file qgsogcutils.cpp.
|
static |
Exports the geometry to GML2 or GML3.
Definition at line 1069 of file qgsogcutils.cpp.
|
static |
|
static |
Read rectangle from GML2 Box.
Definition at line 846 of file qgsogcutils.cpp.
|
static |
Read rectangle from GML3 Envelope.
Definition at line 933 of file qgsogcutils.cpp.
|
static |
Exports the rectangle to GML2 Box.
Definition at line 1012 of file qgsogcutils.cpp.
|
static |
Exports the rectangle to GML2 Envelope.
Definition at line 1040 of file qgsogcutils.cpp.