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 );
324 static QDomElement createGMLCoordinates( const
QgsPolylineXY &points, QDomDocument &doc );
332 static QDomElement createGMLPositions( const
QgsPolylineXY &points, QDomDocument &doc );
349 static
QgsExpressionNode *nodeIsBetweenFromOgcFilter( QDomElement &element, QString &errorMessage );
369 const QString &srsName,
370 bool honourAxisOrientation,
371 bool invertAxisOrientation );
387 const QString &mGeometryName;
388 const QString &mSrsName;
389 bool mInvertAxisOrientation;
390 QString mErrorMessage;
391 QString mFilterPrefix;
392 QString mPropertyName;
432 QString errorMessage()
const;
485 QString mErrorMessage;
486 QString mPropertyName;
502 const QList<QgsOgcUtils::LayerProperties> &layerProperties,
503 bool honourAxisOrientation,
504 bool invertAxisOrientation,
505 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename );
521 const QList<QgsOgcUtils::LayerProperties> &mLayerProperties;
522 bool mHonourAxisOrientation;
523 bool mInvertAxisOrientation;
524 QString mErrorMessage;
525 QString mFilterPrefix;
526 QString mPropertyName;
528 QString mCurrentSRSName;
529 QMap<QString, QString> mMapTableAliasToNames;
530 const QMap< QString, QString> &mMapUnprefixedTypenameToPrefixedTypename;
545 QList<QgsSQLStatement::Node *> args,
546 bool lastArgIsSRSName,
548 bool &axisInversion );
550 #endif // #ifndef SIP_RUN
552 #endif // QGSOGCUTILS_H