69 , transformContext( transformContext )
101 static QgsRectangle rectangleFromGMLBox(
const QDomNode &boxNode );
104 static QgsRectangle rectangleFromGMLEnvelope(
const QDomNode &envelopeNode );
111 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
114 bool invertAxisOrientation,
115 const QString &gmlIdBase,
122 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
const QString &format,
int precision = 17 );
128 static QDomElement geometryToGML(
const QgsGeometry &geometry, QDomDocument &doc,
int precision = 17 );
141 static QDomElement rectangleToGMLBox(
QgsRectangle *box, QDomDocument &doc,
143 bool invertAxisOrientation,
150 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
int precision = 17 );
157 static QDomElement rectangleToGMLEnvelope(
QgsRectangle *env, QDomDocument &doc,
159 bool invertAxisOrientation,
164 static QColor colorFromOgcFill(
const QDomElement &fillElement );
175 static QDomElement expressionToOgcFilter( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr );
204 static QDomElement expressionToOgcFilter( const
QgsExpression &exp,
207 FilterVersion filterVersion,
208 const QString &namespacePrefix,
209 const QString &namespaceURI,
212 bool honourAxisOrientation,
213 bool invertAxisOrientation,
214 QString *errorMessage =
nullptr )
SIP_SKIP;
222 static QDomElement expressionToOgcExpression( const
QgsExpression &exp, QDomDocument &doc, QString *errorMessage =
nullptr,
223 bool requiresFilterElement = false );
230 static QDomElement elseFilterExpression( QDomDocument &doc );
237 static QDomElement expressionToOgcExpression( const
QgsExpression &exp,
240 FilterVersion filterVersion,
243 bool honourAxisOrientation,
244 bool invertAxisOrientation,
245 QString *errorMessage =
nullptr,
246 bool requiresFilterElement = false );
293 static QDomElement SQLStatementToOgcFilter(
const QgsSQLStatement &statement,
297 const QList<LayerProperties> &layerProperties,
298 bool honourAxisOrientation,
299 bool invertAxisOrientation,
300 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename,
301 QString *errorMessage =
nullptr )
SIP_SKIP;
306 static
QgsGeometry geometryFromGMLPoint( const QDomElement &geometryElement );
308 static
QgsGeometry geometryFromGMLLineString( const QDomElement &geometryElement );
310 static
QgsGeometry geometryFromGMLPolygon( const QDomElement &geometryElement );
312 static
QgsGeometry geometryFromGMLMultiPoint( const QDomElement &geometryElement );
314 static
QgsGeometry geometryFromGMLMultiLineString( const QDomElement &geometryElement );
316 static
QgsGeometry geometryFromGMLMultiPolygon( const QDomElement &geometryElement );
322 static QDomElement filterElement(
334 static
bool readGMLCoordinates(
QgsPolylineXY &coords, const QDomElement &elem );
344 static
bool readGMLPositions(
QgsPolylineXY &coords, const QDomElement &elem );
353 static QDomElement createGMLCoordinates( const
QgsPolylineXY &points, QDomDocument &doc );
361 static QDomElement createGMLPositions( const
QgsPolylineXY &points, QDomDocument &doc );
378 static
QgsExpressionNode *nodeIsBetweenFromOgcFilter( QDomElement &element, QString &errorMessage );
397 const QString &namespacePrefix,
398 const QString &namespaceURI,
401 bool honourAxisOrientation,
402 bool invertAxisOrientation );
418 const QString &mNamespacePrefix;
419 const QString &mNamespaceURI;
420 const QString &mGeometryName;
421 const QString &mSrsName;
422 bool mInvertAxisOrientation;
423 QString mErrorMessage;
424 QString mFilterPrefix;
425 QString mPropertyName;
465 QString errorMessage()
const;
518 QString mErrorMessage;
519 QString mPropertyName;
535 const QList<QgsOgcUtils::LayerProperties> &layerProperties,
536 bool honourAxisOrientation,
537 bool invertAxisOrientation,
538 const QMap< QString, QString> &mapUnprefixedTypenameToPrefixedTypename );
554 const QList<QgsOgcUtils::LayerProperties> &mLayerProperties;
555 bool mHonourAxisOrientation;
556 bool mInvertAxisOrientation;
557 QString mErrorMessage;
558 QString mFilterPrefix;
559 QString mPropertyName;
561 QString mCurrentSRSName;
562 QMap<QString, QString> mMapTableAliasToNames;
563 const QMap< QString, QString> &mMapUnprefixedTypenameToPrefixedTypename;
578 QList<QgsSQLStatement::Node *> args,
579 bool lastArgIsSRSName,
581 bool &axisInversion );
614 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