Skip to content

Commit

Permalink
Add GML3 to QgsOgcUtils
Browse files Browse the repository at this point in the history
After the commit 969df01 Moved GML import/export to a new class: QgsOgcUtils, I decided to add GML3.
I updated QgsOgcUtils, QGIS WFS Server, and the Python Iterface and I added unit test for GML3.
  • Loading branch information
rldhont committed Mar 13, 2013
1 parent 173aee6 commit 7d66529
Show file tree
Hide file tree
Showing 6 changed files with 1,201 additions and 9 deletions.
17 changes: 17 additions & 0 deletions python/core/qgsogcutils.sip
Expand Up @@ -28,5 +28,22 @@ public:
/** read rectangle from GML2 Box */
static QgsRectangle rectangleFromGMLBox( const QDomNode& boxNode );


/** static method that creates geometry from GML3
@param XML representation of the geometry. GML elements are expected to be
in default namespace (<Point>...</Point>) or in "gml" namespace (<gml:Point>...</gml:Point>)
*/
static QgsGeometry* geometryFromGML3( const QString& xmlString );

/** static method that creates geometry from GML2
*/
static QgsGeometry* geometryFromGML3( const QDomNode& geometryNode );
/** Exports the geometry to mGML3
@return true in case of success and false else
*/
static QDomElement geometryToGML3( QgsGeometry* geometry, QDomDocument& doc );

/** read rectangle from GML3 Envelope */
static QgsRectangle rectangleFromGMLEnvelope( const QDomNode& envelopeNode );
};

0 comments on commit 7d66529

Please sign in to comment.