67 , transformContext( transformContext )
99 static QgsRectangle rectangleFromGMLBox(
const QDomNode &boxNode );
102 static QgsRectangle rectangleFromGMLEnvelope(
const QDomNode &envelopeNode );
109 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
112 bool invertAxisOrientation,
113 const QString &gmlIdBase,
120 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
const QString &format,
int precision = 17 );
126 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
int precision = 17 );
139 static QDomElement rectangleToGMLBox(
QgsRectangle *box, QDomDocument &doc,
141 bool invertAxisOrientation,
148 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
int precision = 17 );
155 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
157 bool invertAxisOrientation,
162 static QColor colorFromOgcFill(
const QDomElement &fillElement );
173 static QDomElement expressionToOgcFilter( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr );
202 static QDomElement expressionToOgcFilter( const
QgsExpression &exp,
205 FilterVersion filterVersion,
206 const QString &namespacePrefix,
207 const QString &namespaceURI,
210 bool honourAxisOrientation,
211 bool invertAxisOrientation,
212 QString *errorMessage =
nullptr )
SIP_SKIP;
220 static QDomElement expressionToOgcExpression( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr,
221 bool requiresFilterElement = false );
228 static QDomElement expressionToOgcExpression( const
QgsExpression &exp,
231 FilterVersion filterVersion,
234 bool honourAxisOrientation,
235 bool invertAxisOrientation,
236 QString *errorMessage =
nullptr,
237 bool requiresFilterElement = false );
284 static QDomElement SQLStatementToOgcFilter(
const QgsSQLStatement &statement,
288 const QList<LayerProperties> &layerProperties,
289 bool honourAxisOrientation,
290 bool invertAxisOrientation,
291 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename,
292 QString *errorMessage =
nullptr )
SIP_SKIP;
297 static
QgsGeometry geometryFromGMLPoint( const QDomElement &geometryElement );
299 static
QgsGeometry geometryFromGMLLineString( const QDomElement &geometryElement );
301 static
QgsGeometry geometryFromGMLPolygon( const QDomElement &geometryElement );
303 static
QgsGeometry geometryFromGMLMultiPoint( const QDomElement &geometryElement );
305 static
QgsGeometry geometryFromGMLMultiLineString( const QDomElement &geometryElement );
307 static
QgsGeometry geometryFromGMLMultiPolygon( const QDomElement &geometryElement );
313 static QDomElement filterElement(
325 static
bool readGMLCoordinates(
QgsPolylineXY &coords, const QDomElement &elem );
335 static
bool readGMLPositions(
QgsPolylineXY &coords, const QDomElement &elem );
344 static QDomElement createGMLCoordinates( const
QgsPolylineXY &points, QDomDocument &doc );
352 static QDomElement createGMLPositions( const
QgsPolylineXY &points, QDomDocument &doc );
369 static
QgsExpressionNode *nodeIsBetweenFromOgcFilter( QDomElement &element, QString &errorMessage );
388 const QString &namespacePrefix,
389 const QString &namespaceURI,
392 bool honourAxisOrientation,
393 bool invertAxisOrientation );
409 const QString &mNamespacePrefix;
410 const QString &mNamespaceURI;
411 const QString &mGeometryName;
412 const QString &mSrsName;
413 bool mInvertAxisOrientation;
414 QString mErrorMessage;
415 QString mFilterPrefix;
416 QString mPropertyName;
456 QString errorMessage()
const;
509 QString mErrorMessage;
510 QString mPropertyName;
526 const QList<QgsOgcUtils::LayerProperties> &layerProperties,
527 bool honourAxisOrientation,
528 bool invertAxisOrientation,
529 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename );
545 const QList<QgsOgcUtils::LayerProperties> &mLayerProperties;
546 bool mHonourAxisOrientation;
547 bool mInvertAxisOrientation;
548 QString mErrorMessage;
549 QString mFilterPrefix;
550 QString mPropertyName;
552 QString mCurrentSRSName;
553 QMap<QString, QString> mMapTableAliasToNames;
554 const QMap< QString, QString> &mMapUnprefixedTypenameToPrefixedTypename;
569 QList<QgsSQLStatement::Node *> args,
570 bool lastArgIsSRSName,
572 bool &axisInversion );
605 static CRSFlavor parseCrsName(
const QString &crsName, QString &authority, QString &code );
Contains information about the context in which a coordinate transform is executed.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
A binary expression operator, which operates on two values.
An expression node which takes it value from a feature's field.
An expression node for expression functions.
An expression node for value IN or NOT IN clauses.
An expression node for literal values.
A unary node is either negative as in boolean (not) or as in numbers (minus).
Abstract base class for all nodes that can appear in an expression.
Class for parsing and evaluation of expressions (formerly called "search strings").
A geometry is the spatial representation of a feature.
Base class for all map layer types.
Utilities related to OGC CRS encodings.
Internal use by QgsOgcUtils.
bool GMLNamespaceUsed() const
Returns whether the gml: namespace is used.
QString errorMessage() const
Returns the error message.
Internal use by QgsOgcUtils.
Internal use by QgsOgcUtils.
bool GMLNamespaceUsed() const
Returns whether the gml: namespace is used.
QString errorMessage() const
Returns the error message.
QString mSRSName
SRS name.
LayerProperties()=default
Constructor.
QString mNamespaceURI
Namespace URI.
QString mNamespacePrefix
Namespace prefix.
QString mGeometryAttribute
Geometry attribute name.
The QgsOgcUtils class provides various utility functions for conversion between OGC (Open Geospatial ...
FilterVersion
OGC filter version.
A class to represent a 2D point.
A rectangle specified with double values.
'X BETWEEN y and z' operator
Binary logical/arithmetical operator (AND, OR, =, +, ...)
Function with a name and arguments node.
Literal value (integer, integer64, double, string)
Unary logicial/arithmetical operator ( NOT, - )
Class for parsing SQL statements.
Represents a vector layer which manages a vector based data sets.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
QVector< QgsPointXY > QgsPolylineXY
Polyline as represented as a vector of two-dimensional points.
const QString & geometryName
The Context struct stores the current layer and coordinate transform context.
Context(const QgsMapLayer *layer=nullptr, const QgsCoordinateTransformContext &transformContext=QgsCoordinateTransformContext())
Constructs a Context from layer and transformContext.
QgsCoordinateTransformContext transformContext