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 elseFilterExpression( QDomDocument &doc );
235 static QDomElement expressionToOgcExpression( const
QgsExpression &exp,
238 FilterVersion filterVersion,
241 bool honourAxisOrientation,
242 bool invertAxisOrientation,
243 QString *errorMessage =
nullptr,
244 bool requiresFilterElement = false );
291 static QDomElement SQLStatementToOgcFilter(
const QgsSQLStatement &statement,
295 const QList<LayerProperties> &layerProperties,
296 bool honourAxisOrientation,
297 bool invertAxisOrientation,
298 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename,
299 QString *errorMessage =
nullptr )
SIP_SKIP;
304 static
QgsGeometry geometryFromGMLPoint( const QDomElement &geometryElement );
306 static
QgsGeometry geometryFromGMLLineString( const QDomElement &geometryElement );
308 static
QgsGeometry geometryFromGMLPolygon( const QDomElement &geometryElement );
310 static
QgsGeometry geometryFromGMLMultiPoint( const QDomElement &geometryElement );
312 static
QgsGeometry geometryFromGMLMultiLineString( const QDomElement &geometryElement );
314 static
QgsGeometry geometryFromGMLMultiPolygon( const QDomElement &geometryElement );
320 static QDomElement filterElement(
332 static
bool readGMLCoordinates(
QgsPolylineXY &coords, const QDomElement &elem );
342 static
bool readGMLPositions(
QgsPolylineXY &coords, const QDomElement &elem );
351 static QDomElement createGMLCoordinates( const
QgsPolylineXY &points, QDomDocument &doc );
359 static QDomElement createGMLPositions( const
QgsPolylineXY &points, QDomDocument &doc );
376 static
QgsExpressionNode *nodeIsBetweenFromOgcFilter( QDomElement &element, QString &errorMessage );
395 const QString &namespacePrefix,
396 const QString &namespaceURI,
399 bool honourAxisOrientation,
400 bool invertAxisOrientation );
416 const QString &mNamespacePrefix;
417 const QString &mNamespaceURI;
418 const QString &mGeometryName;
419 const QString &mSrsName;
420 bool mInvertAxisOrientation;
421 QString mErrorMessage;
422 QString mFilterPrefix;
423 QString mPropertyName;
463 QString errorMessage()
const;
516 QString mErrorMessage;
517 QString mPropertyName;
533 const QList<QgsOgcUtils::LayerProperties> &layerProperties,
534 bool honourAxisOrientation,
535 bool invertAxisOrientation,
536 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename );
552 const QList<QgsOgcUtils::LayerProperties> &mLayerProperties;
553 bool mHonourAxisOrientation;
554 bool mInvertAxisOrientation;
555 QString mErrorMessage;
556 QString mFilterPrefix;
557 QString mPropertyName;
559 QString mCurrentSRSName;
560 QMap<QString, QString> mMapTableAliasToNames;
561 const QMap< QString, QString> &mMapUnprefixedTypenameToPrefixedTypename;
576 QList<QgsSQLStatement::Node *> args,
577 bool lastArgIsSRSName,
579 bool &axisInversion );
612 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