QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
QgsOgcUtils Class Reference

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 QgsExpressionexpressionFromOgcFilter (const QDomElement &element)
 Parse XML with OGC filter into QGIS expression. More...
 
static QDomElement expressionToOgcFilter (const QgsExpression &exp, QDomDocument &doc, QString *errorMessage=0)
 Creates OGC filter XML element. More...
 
static QgsGeometrygeometryFromGML (const QString &xmlString)
 static method that creates geometry from GML More...
 
static QgsGeometrygeometryFromGML (const QDomNode &geometryNode)
 static method that creates geometry from GML More...
 
static QDomElement geometryToGML (QgsGeometry *geometry, QDomDocument &doc, QString format, const int &precision=17)
 Exports the geometry to GML2 or GML3. More...
 
static QDomElement geometryToGML (QgsGeometry *geometry, QDomDocument &doc, const 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, const int &precision=17)
 Exports the rectangle to GML2 Box. More...
 
static QDomElement rectangleToGMLEnvelope (QgsRectangle *env, QDomDocument &doc, const int &precision=17)
 Exports the rectangle to GML2 Envelope. More...
 

Detailed Description

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 28 of file qgsogcutils.h.

Member Function Documentation

QColor QgsOgcUtils::colorFromOgcFill ( const QDomElement &  fillElement)
static

Parse XML with OGC fill into QColor.

Definition at line 1400 of file qgsogcutils.cpp.

QgsExpression * QgsOgcUtils::expressionFromOgcFilter ( const QDomElement &  element)
static

Parse XML with OGC filter into QGIS expression.

Definition at line 1439 of file qgsogcutils.cpp.

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

Definition at line 1879 of file qgsogcutils.cpp.

QgsGeometry * QgsOgcUtils::geometryFromGML ( const QString &  xmlString)
static

static method that creates geometry from GML

Parameters
xmlStringxml 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 81 of file qgsogcutils.cpp.

QgsGeometry * QgsOgcUtils::geometryFromGML ( const QDomNode &  geometryNode)
static

static method that creates geometry from GML

Definition at line 20 of file qgsogcutils.cpp.

QDomElement QgsOgcUtils::geometryToGML ( QgsGeometry geometry,
QDomDocument &  doc,
QString  format,
const int &  precision = 17 
)
static

Exports the geometry to GML2 or GML3.

Returns
QDomElement

Definition at line 1053 of file qgsogcutils.cpp.

QDomElement QgsOgcUtils::geometryToGML ( QgsGeometry geometry,
QDomDocument &  doc,
const int &  precision = 17 
)
static

Exports the geometry to GML2.

Returns
QDomElement

Definition at line 1342 of file qgsogcutils.cpp.

QgsRectangle QgsOgcUtils::rectangleFromGMLBox ( const QDomNode &  boxNode)
static

read rectangle from GML2 Box

Definition at line 830 of file qgsogcutils.cpp.

QgsRectangle QgsOgcUtils::rectangleFromGMLEnvelope ( const QDomNode &  envelopeNode)
static

read rectangle from GML3 Envelope

Definition at line 917 of file qgsogcutils.cpp.

QDomElement QgsOgcUtils::rectangleToGMLBox ( QgsRectangle box,
QDomDocument &  doc,
const int &  precision = 17 
)
static

Exports the rectangle to GML2 Box.

Returns
QDomElement

Definition at line 996 of file qgsogcutils.cpp.

QDomElement QgsOgcUtils::rectangleToGMLEnvelope ( QgsRectangle env,
QDomDocument &  doc,
const int &  precision = 17 
)
static

Exports the rectangle to GML2 Envelope.

Returns
QDomElement

Definition at line 1024 of file qgsogcutils.cpp.


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