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 QgsGeometry * | geometryFromGML (const QString &xmlString) |
| static method that creates geometry from GML
|
static QgsGeometry * | geometryFromGML (const QDomNode &geometryNode) |
| static method that creates geometry from GML
|
static QgsRectangle | rectangleFromGMLBox (const QDomNode &boxNode) |
| read rectangle from GML2 Box
|
static QgsRectangle | rectangleFromGMLEnvelope (const QDomNode &envelopeNode) |
| read rectangle from GML3 Envelope
|
static QDomElement | geometryToGML (QgsGeometry *geometry, QDomDocument &doc, QString format, const int &precision=17) |
| Exports the geometry to GML2 or GML3.
|
static QDomElement | geometryToGML (QgsGeometry *geometry, QDomDocument &doc, const int &precision=17) |
| Exports the geometry to GML2.
|
static QDomElement | rectangleToGMLBox (QgsRectangle *box, QDomDocument &doc, const int &precision=17) |
| Exports the rectangle to GML2 Box.
|
static QDomElement | rectangleToGMLEnvelope (QgsRectangle *env, QDomDocument &doc, const int &precision=17) |
| Exports the rectangle to GML2 Envelope.
|
static QColor | colorFromOgcFill (const QDomElement &fillElement) |
| Parse XML with OGC fill into QColor.
|
static QgsExpression * | expressionFromOgcFilter (const QDomElement &element) |
| Parse XML with OGC filter into QGIS expression.
|
static QDomElement | expressionToOgcFilter (const QgsExpression &exp, QDomDocument &doc, QString *errorMessage=0) |
| Creates OGC filter XML element.
|
Detailed Description
The QgsOgcUtils class provides various utility functions for conversion between OGC (Open Geospatial Consortium) standards and QGIS internal representations.
Currently supported standards:
- GML2 - Geography Markup Language (import, export)
Member Function Documentation
QColor QgsOgcUtils::colorFromOgcFill |
( |
const QDomElement & |
fillElement | ) |
|
|
static |
Parse XML with OGC fill into QColor.
QgsExpression * QgsOgcUtils::expressionFromOgcFilter |
( |
const QDomElement & |
element | ) |
|
|
static |
Parse XML with OGC filter into QGIS expression.
QDomElement QgsOgcUtils::expressionToOgcFilter |
( |
const QgsExpression & |
exp, |
|
|
QDomDocument & |
doc, |
|
|
QString * |
errorMessage = 0 |
|
) |
| |
|
static |
Creates OGC filter XML element.
Supports minimum standard filter according to the OGC filter specs (=,!=,<,>,<=,>=,AND,OR,NOT)
- Returns
- valid
<Filter>
QDomElement on success, otherwise null QDomElement
QgsGeometry * QgsOgcUtils::geometryFromGML |
( |
const QString & |
xmlString | ) |
|
|
static |
static method that creates geometry from GML
- Parameters
-
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> ) |
QgsGeometry * QgsOgcUtils::geometryFromGML |
( |
const QDomNode & |
geometryNode | ) |
|
|
static |
static method that creates geometry from GML
QDomElement QgsOgcUtils::geometryToGML |
( |
QgsGeometry * |
geometry, |
|
|
QDomDocument & |
doc, |
|
|
QString |
format, |
|
|
const int & |
precision = 17 |
|
) |
| |
|
static |
Exports the geometry to GML2 or GML3.
- Returns
- QDomElement
QDomElement QgsOgcUtils::geometryToGML |
( |
QgsGeometry * |
geometry, |
|
|
QDomDocument & |
doc, |
|
|
const int & |
precision = 17 |
|
) |
| |
|
static |
Exports the geometry to GML2.
- Returns
- QDomElement
QgsRectangle QgsOgcUtils::rectangleFromGMLBox |
( |
const QDomNode & |
boxNode | ) |
|
|
static |
read rectangle from GML2 Box
QgsRectangle QgsOgcUtils::rectangleFromGMLEnvelope |
( |
const QDomNode & |
envelopeNode | ) |
|
|
static |
read rectangle from GML3 Envelope
QDomElement QgsOgcUtils::rectangleToGMLBox |
( |
QgsRectangle * |
box, |
|
|
QDomDocument & |
doc, |
|
|
const int & |
precision = 17 |
|
) |
| |
|
static |
Exports the rectangle to GML2 Box.
- Returns
- QDomElement
QDomElement QgsOgcUtils::rectangleToGMLEnvelope |
( |
QgsRectangle * |
env, |
|
|
QDomDocument & |
doc, |
|
|
const int & |
precision = 17 |
|
) |
| |
|
static |
Exports the rectangle to GML2 Envelope.
- Returns
- QDomElement
The documentation for this class was generated from the following files: