QGIS API Documentation  2.99.0-Master (0a63d1f)
Functions | Variables
qgsogcutils.cpp File Reference
#include "qgsogcutils.h"
#include "qgsexpression.h"
#include "qgsexpressionprivate.h"
#include "qgsgeometry.h"
#include "qgswkbptr.h"
#include "qgscoordinatereferencesystem.h"
#include "qgsrectangle.h"
#include <QColor>
#include <QStringList>
#include <QTextStream>
#include <QObject>
#include <netinet/in.h>
Include dependency graph for qgsogcutils.cpp:

Go to the source code of this file.

Functions

static int binaryOperatorFromTagName (const QString &tagName)
 
static QString binaryOperatorToTagName (QgsExpression::BinaryOperator op)
 
static QgsGeometry geometryFromConstExpr (const QgsExpression::Node *node)
 
static bool isBinaryOperator (const QString &tagName)
 
static bool isBinarySpatialOperator (const QString &fnName)
 
static bool isGeometryColumn (const QgsExpression::Node *node)
 
static bool isSpatialOperator (const QString &tagName)
 
static QString mapBinarySpatialToOgc (const QString &name)
 
static QString mapTernarySpatialToOgc (const QString &name)
 
static QString tagNameForSpatialOperator (const QString &fnName)
 

Variables

static const QMap< QString, int > BINARY_OPERATORS_TAG_NAMES_MAP
 
static const QMap< QString, QString > BINARY_SPATIAL_OPS_MAP
 
static const QString FES_NAMESPACE = QStringLiteral( "http://www.opengis.net/fes/2.0" )
 
static const QString GML32_NAMESPACE = QStringLiteral( "http://www.opengis.net/gml/3.2" )
 
static const QString GML_NAMESPACE = QStringLiteral( "http://www.opengis.net/gml" )
 
static const QString OGC_NAMESPACE = QStringLiteral( "http://www.opengis.net/ogc" )
 

Function Documentation

◆ binaryOperatorFromTagName()

static int binaryOperatorFromTagName ( const QString &  tagName)
static

Definition at line 1658 of file qgsogcutils.cpp.

◆ binaryOperatorToTagName()

static QString binaryOperatorToTagName ( QgsExpression::BinaryOperator  op)
static

Definition at line 1664 of file qgsogcutils.cpp.

◆ geometryFromConstExpr()

static QgsGeometry geometryFromConstExpr ( const QgsExpression::Node node)
static

Definition at line 2468 of file qgsogcutils.cpp.

◆ isBinaryOperator()

static bool isBinaryOperator ( const QString &  tagName)
static

Definition at line 1673 of file qgsogcutils.cpp.

◆ isBinarySpatialOperator()

static bool isBinarySpatialOperator ( const QString &  fnName)
static

Definition at line 2448 of file qgsogcutils.cpp.

◆ isGeometryColumn()

static bool isGeometryColumn ( const QgsExpression::Node node)
static

Definition at line 2458 of file qgsogcutils.cpp.

◆ isSpatialOperator()

static bool isSpatialOperator ( const QString &  tagName)
static

Definition at line 1679 of file qgsogcutils.cpp.

◆ mapBinarySpatialToOgc()

static QString mapBinarySpatialToOgc ( const QString &  name)
static

Definition at line 2902 of file qgsogcutils.cpp.

◆ mapTernarySpatialToOgc()

static QString mapTernarySpatialToOgc ( const QString &  name)
static

Definition at line 2918 of file qgsogcutils.cpp.

◆ tagNameForSpatialOperator()

static QString tagNameForSpatialOperator ( const QString &  fnName)
static

Definition at line 2453 of file qgsogcutils.cpp.

Variable Documentation

◆ BINARY_OPERATORS_TAG_NAMES_MAP

const QMap<QString, int> BINARY_OPERATORS_TAG_NAMES_MAP
static
Initial value:
{
{ QStringLiteral( "Or" ), QgsExpression::boOr },
{ QStringLiteral( "And" ), QgsExpression::boAnd },
{ QStringLiteral( "PropertyIsEqualTo" ), QgsExpression::boEQ },
{ QStringLiteral( "PropertyIsNotEqualTo" ), QgsExpression::boNE },
{ QStringLiteral( "PropertyIsLessThanOrEqualTo" ), QgsExpression::boLE },
{ QStringLiteral( "PropertyIsGreaterThanOrEqualTo" ), QgsExpression::boGE },
{ QStringLiteral( "PropertyIsLessThan" ), QgsExpression::boLT },
{ QStringLiteral( "PropertyIsGreaterThan" ), QgsExpression::boGT },
{ QStringLiteral( "PropertyIsLike" ), QgsExpression::boLike },
{ QStringLiteral( "Add" ), QgsExpression::boPlus },
{ QStringLiteral( "Sub" ), QgsExpression::boMinus },
{ QStringLiteral( "Mul" ), QgsExpression::boMul },
{ QStringLiteral( "Div" ), QgsExpression::boDiv },
}

Definition at line 1639 of file qgsogcutils.cpp.

◆ BINARY_SPATIAL_OPS_MAP

const QMap<QString, QString> BINARY_SPATIAL_OPS_MAP
static
Initial value:
{
{ QStringLiteral( "disjoint" ), QStringLiteral( "Disjoint" ) },
{ QStringLiteral( "intersects" ), QStringLiteral( "Intersects" )},
{ QStringLiteral( "touches" ), QStringLiteral( "Touches" ) },
{ QStringLiteral( "crosses" ), QStringLiteral( "Crosses" ) },
{ QStringLiteral( "contains" ), QStringLiteral( "Contains" ) },
{ QStringLiteral( "overlaps" ), QStringLiteral( "Overlaps" ) },
{ QStringLiteral( "within" ), QStringLiteral( "Within" ) }
}

Definition at line 2438 of file qgsogcutils.cpp.

◆ FES_NAMESPACE

const QString FES_NAMESPACE = QStringLiteral( "http://www.opengis.net/fes/2.0" )
static

Definition at line 39 of file qgsogcutils.cpp.

◆ GML32_NAMESPACE

const QString GML32_NAMESPACE = QStringLiteral( "http://www.opengis.net/gml/3.2" )
static

Definition at line 37 of file qgsogcutils.cpp.

◆ GML_NAMESPACE

const QString GML_NAMESPACE = QStringLiteral( "http://www.opengis.net/gml" )
static

Definition at line 36 of file qgsogcutils.cpp.

◆ OGC_NAMESPACE

const QString OGC_NAMESPACE = QStringLiteral( "http://www.opengis.net/ogc" )
static

Definition at line 38 of file qgsogcutils.cpp.