24 #include "qgis_core.h"
66 , transformContext( transformContext )
98 static QgsRectangle rectangleFromGMLBox(
const QDomNode &boxNode );
101 static QgsRectangle rectangleFromGMLEnvelope(
const QDomNode &envelopeNode );
108 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
110 const QString &srsName,
111 bool invertAxisOrientation,
112 const QString &gmlIdBase,
119 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
const QString &format,
int precision = 17 );
125 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
int precision = 17 );
138 static QDomElement rectangleToGMLBox(
QgsRectangle *box, QDomDocument &doc,
139 const QString &srsName,
140 bool invertAxisOrientation,
147 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
int precision = 17 );
154 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
155 const QString &srsName,
156 bool invertAxisOrientation,
161 static QColor colorFromOgcFill(
const QDomElement &fillElement );
172 static QDomElement expressionToOgcFilter( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr );
201 static QDomElement expressionToOgcFilter( const
QgsExpression &exp,
204 FilterVersion filterVersion,
206 const QString &srsName,
207 bool honourAxisOrientation,
208 bool invertAxisOrientation,
209 QString *errorMessage =
nullptr )
SIP_SKIP;
216 static QDomElement expressionToOgcExpression( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr );
223 static QDomElement expressionToOgcExpression( const
QgsExpression &exp,
226 FilterVersion filterVersion,
228 const QString &srsName,
229 bool honourAxisOrientation,
230 bool invertAxisOrientation,
231 QString *errorMessage =
nullptr );
274 static QDomElement SQLStatementToOgcFilter(
const QgsSQLStatement &statement,
278 const QList<LayerProperties> &layerProperties,
279 bool honourAxisOrientation,
280 bool invertAxisOrientation,
281 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename,
282 QString *errorMessage =
nullptr )
SIP_SKIP;
287 static
QgsGeometry geometryFromGMLPoint( const QDomElement &geometryElement );
289 static
QgsGeometry geometryFromGMLLineString( const QDomElement &geometryElement );
291 static
QgsGeometry geometryFromGMLPolygon( const QDomElement &geometryElement );
293 static
QgsGeometry geometryFromGMLMultiPoint( const QDomElement &geometryElement );
295 static
QgsGeometry geometryFromGMLMultiLineString( const QDomElement &geometryElement );
297 static
QgsGeometry geometryFromGMLMultiPolygon( const QDomElement &geometryElement );
305 static
bool readGMLCoordinates(
QgsPolylineXY &coords, const QDomElement &elem );
315 static
bool readGMLPositions(
QgsPolylineXY &coords, const QDomElement &elem );
323 static QDomElement createGMLCoordinates( const
QgsPolylineXY &points, QDomDocument &doc );
330 static QDomElement createGMLPositions( const
QgsPolylineXY &points, QDomDocument &doc );
347 static
QgsExpressionNode *nodeIsBetweenFromOgcFilter( QDomElement &element, QString &errorMessage );
367 const QString &srsName,
368 bool honourAxisOrientation,
369 bool invertAxisOrientation );
385 const QString &mGeometryName;
386 const QString &mSrsName;
387 bool mInvertAxisOrientation;
388 QString mErrorMessage;
389 QString mFilterPrefix;
390 QString mPropertyName;
430 QString errorMessage()
const;
483 QString mErrorMessage;
484 QString mPropertyName;
500 const QList<QgsOgcUtils::LayerProperties> &layerProperties,
501 bool honourAxisOrientation,
502 bool invertAxisOrientation,
503 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename );
519 const QList<QgsOgcUtils::LayerProperties> &mLayerProperties;
520 bool mHonourAxisOrientation;
521 bool mInvertAxisOrientation;
522 QString mErrorMessage;
523 QString mFilterPrefix;
524 QString mPropertyName;
526 QString mCurrentSRSName;
527 QMap<QString, QString> mMapTableAliasToNames;
528 const QMap< QString, QString> &mMapUnprefixedTypenameToPrefixedTypename;
543 QList<QgsSQLStatement::Node *> args,
544 bool lastArgIsSRSName,
546 bool &axisInversion );
548 #endif // #ifndef SIP_RUN
550 #endif // QGSOGCUTILS_H