24 #include "qgis_core.h" 70 static QgsGeometry geometryFromGML(
const QString &xmlString );
75 static QgsGeometry geometryFromGML(
const QDomNode &geometryNode );
78 static QgsRectangle rectangleFromGMLBox(
const QDomNode &boxNode );
81 static QgsRectangle rectangleFromGMLEnvelope(
const QDomNode &envelopeNode );
88 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
90 const QString &srsName,
91 bool invertAxisOrientation,
92 const QString &gmlIdBase,
99 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
const QString &format,
int precision = 17 );
105 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
int precision = 17 );
118 static QDomElement rectangleToGMLBox(
QgsRectangle *box, QDomDocument &doc,
119 const QString &srsName,
120 bool invertAxisOrientation,
127 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
int precision = 17 );
134 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
135 const QString &srsName,
136 bool invertAxisOrientation,
141 static QColor colorFromOgcFill(
const QDomElement &fillElement );
152 static QDomElement expressionToOgcFilter( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr );
181 static QDomElement expressionToOgcFilter( const
QgsExpression &exp,
186 const QString &srsName,
187 bool honourAxisOrientation,
188 bool invertAxisOrientation,
189 QString *errorMessage =
nullptr )
SIP_SKIP;
196 static QDomElement expressionToOgcExpression( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr );
203 static QDomElement expressionToOgcExpression( const
QgsExpression &exp,
207 const QString &geometryName,
208 const QString &srsName,
209 bool honourAxisOrientation,
210 bool invertAxisOrientation,
211 QString *errorMessage =
nullptr );
254 static QDomElement SQLStatementToOgcFilter(
const QgsSQLStatement &statement,
258 const QList<LayerProperties> &layerProperties,
259 bool honourAxisOrientation,
260 bool invertAxisOrientation,
261 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename,
262 QString *errorMessage =
nullptr ) SIP_SKIP;
267 static
QgsGeometry geometryFromGMLPoint( const QDomElement &geometryElement );
269 static
QgsGeometry geometryFromGMLLineString( const QDomElement &geometryElement );
271 static
QgsGeometry geometryFromGMLPolygon( const QDomElement &geometryElement );
273 static
QgsGeometry geometryFromGMLMultiPoint( const QDomElement &geometryElement );
275 static
QgsGeometry geometryFromGMLMultiLineString( const QDomElement &geometryElement );
277 static
QgsGeometry geometryFromGMLMultiPolygon( const QDomElement &geometryElement );
284 static
bool readGMLCoordinates(
QgsPolylineXY &coords, const QDomElement &elem );
293 static
bool readGMLPositions(
QgsPolylineXY &coords, const QDomElement &elem );
301 static QDomElement createGMLCoordinates( const
QgsPolylineXY &points, QDomDocument &doc );
308 static QDomElement createGMLPositions( const
QgsPolylineXY &points, QDomDocument &doc );
325 static
QgsExpressionNode *nodeIsBetweenFromOgcFilter( QDomElement &element, QString &errorMessage );
344 const QString &geometryName,
345 const QString &srsName,
346 bool honourAxisOrientation,
347 bool invertAxisOrientation );
363 const QString &mGeometryName;
364 const QString &mSrsName;
365 bool mInvertAxisOrientation;
366 QString mErrorMessage;
367 QString mFilterPrefix;
368 QString mPropertyName;
408 QString errorMessage()
const;
461 QString mErrorMessage;
462 QString mPropertyName;
478 const QList<QgsOgcUtils::LayerProperties> &layerProperties,
479 bool honourAxisOrientation,
480 bool invertAxisOrientation,
481 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename );
497 const QList<QgsOgcUtils::LayerProperties> &mLayerProperties;
498 bool mHonourAxisOrientation;
499 bool mInvertAxisOrientation;
500 QString mErrorMessage;
501 QString mFilterPrefix;
502 QString mPropertyName;
504 QString mCurrentSRSName;
505 QMap<QString, QString> mMapTableAliasToNames;
506 const QMap< QString, QString> &mMapUnprefixedTypenameToPrefixedTypename;
521 QList<QgsSQLStatement::Node *> args,
522 bool lastArgIsSRSName,
524 bool &axisInversion );
526 #endif // #ifndef SIP_RUN 528 #endif // QGSOGCUTILS_H Class for parsing and evaluation of expressions (formerly called "search strings").
A rectangle specified with double values.
Internal use by QgsOgcUtils.
QString errorMessage() const
Returns the error message.
Function with a name and arguments node.
A class to represent a 2D point.
A geometry is the spatial representation of a feature.
Binary logical/arithmetical operator (AND, OR, =, +, ...)
bool GMLNamespaceUsed() const
Returns whether the gml: namespace is used.
Internal use by QgsOgcUtils.
Class for parsing SQL statements.
const QString & geometryName
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
An expression node for value IN or NOT IN clauses.
Literal value (integer, integer64, double, string)
Internal use by QgsOgcUtils.
An expression node which takes it value from a feature's field.
Unary logicial/arithmetical operator ( NOT, - )
QString mSRSName
SRS name.
Abstract base class for all nodes that can appear in an expression.
An expression node for expression functions.
FilterVersion
OGC filter version.
'X BETWEEN y and z' operator
QVector< QgsPointXY > QgsPolylineXY
Polyline as represented as a vector of two-dimensional points.
An expression node for literal values.
A unary node is either negative as in boolean (not) or as in numbers (minus).
A binary expression operator, which operates on two values.
QString mGeometryAttribute
Geometry attribute name.
QString errorMessage() const
Returns the error message.
Represents a vector layer which manages a vector based data sets.
'x IN (y, z)' operator
The QgsOgcUtils class provides various utility functions for conversion between OGC (Open Geospatial ...
bool GMLNamespaceUsed() const
Returns whether the gml: namespace is used.