QGIS API Documentation  3.24.2-Tisler (13c1a02865)
Static Public Member Functions | Friends | List of all members
QgsArcGisRestUtils Class Reference

Utility functions for working with ArcGIS REST services. More...

#include <qgsarcgisrestutils.h>

Static Public Member Functions

static QColor convertColor (const QVariant &data)
 Converts ESRI JSON color data to a QColor object. More...
 
static QDateTime convertDateTime (const QVariant &value)
 Converts a date time value to a QDateTime. More...
 
static QVariant::Type convertFieldType (const QString &type)
 Converts an ESRI REST field type to a QVariant type. More...
 
static Qt::BrushStyle convertFillStyle (const QString &style)
 Converts an ESRI fill style to a Qt brush style. More...
 
static QgsAbstractGeometryconvertGeometry (const QVariantMap &geometry, const QString &esriGeometryType, bool hasM, bool hasZ, QgsCoordinateReferenceSystem *crs=nullptr)
 Converts an ESRI REST geometry JSON definition to a QgsAbstractGeometry. More...
 
static QgsWkbTypes::Type convertGeometryType (const QString &type)
 Converts an ESRI REST geometry type to a WKB type. More...
 
static QgsAbstractVectorLayerLabelingconvertLabeling (const QVariantList &data)
 Converts labeling JSON data to an equivalent QGIS vector labeling. More...
 
static QString convertLabelingExpression (const QString &string)
 Converts an ESRI labeling expression to a QGIS expression string. More...
 
static Qt::PenStyle convertLineStyle (const QString &style)
 Converts an ESRI line style to a Qt pen style. More...
 
static QgsFeatureRendererconvertRenderer (const QVariantMap &rendererData)
 Converts renderer JSON data to an equivalent QgsFeatureRenderer. More...
 
static QgsCoordinateReferenceSystem convertSpatialReference (const QVariantMap &spatialReferenceMap)
 Converts a spatial reference JSON definition to a QgsCoordinateReferenceSystem value. More...
 
static QgsSymbolconvertSymbol (const QVariantMap &definition)
 Converts a symbol JSON definition to a QgsSymbol. More...
 

Friends

class TestQgsArcGisRestUtils
 

Detailed Description

Utility functions for working with ArcGIS REST services.

See also
QgsArcGisPortalUtils
Since
QGIS 3.18

Definition at line 58 of file qgsarcgisrestutils.h.

Member Function Documentation

◆ convertColor()

QColor QgsArcGisRestUtils::convertColor ( const QVariant &  data)
static

Converts ESRI JSON color data to a QColor object.

Definition at line 854 of file qgsarcgisrestutils.cpp.

◆ convertDateTime()

QDateTime QgsArcGisRestUtils::convertDateTime ( const QVariant &  value)
static

Converts a date time value to a QDateTime.

Definition at line 907 of file qgsarcgisrestutils.cpp.

◆ convertFieldType()

QVariant::Type QgsArcGisRestUtils::convertFieldType ( const QString &  type)
static

Converts an ESRI REST field type to a QVariant type.

Definition at line 44 of file qgsarcgisrestutils.cpp.

◆ convertFillStyle()

Qt::BrushStyle QgsArcGisRestUtils::convertFillStyle ( const QString &  style)
static

Converts an ESRI fill style to a Qt brush style.

Definition at line 885 of file qgsarcgisrestutils.cpp.

◆ convertGeometry()

QgsAbstractGeometry * QgsArcGisRestUtils::convertGeometry ( const QVariantMap &  geometry,
const QString &  esriGeometryType,
bool  hasM,
bool  hasZ,
QgsCoordinateReferenceSystem crs = nullptr 
)
static

Converts an ESRI REST geometry JSON definition to a QgsAbstractGeometry.

Caller takes ownership of the returned object.

Parameters
geometryJSON geometry definition
esriGeometryTypeESRI geometry type string
hasMset to true to if geometry includes M values
hasZset to true to if geometry includes Z values
crsif specified will be set to the parsed geometry CRS
Returns
converted geometry

Definition at line 336 of file qgsarcgisrestutils.cpp.

◆ convertGeometryType()

QgsWkbTypes::Type QgsArcGisRestUtils::convertGeometryType ( const QString &  type)
static

Converts an ESRI REST geometry type to a WKB type.

Definition at line 75 of file qgsarcgisrestutils.cpp.

◆ convertLabeling()

QgsAbstractVectorLayerLabeling * QgsArcGisRestUtils::convertLabeling ( const QVariantList &  data)
static

Converts labeling JSON data to an equivalent QGIS vector labeling.

Caller takes ownership of the returned object.

Definition at line 623 of file qgsarcgisrestutils.cpp.

◆ convertLabelingExpression()

QString QgsArcGisRestUtils::convertLabelingExpression ( const QString &  string)
static

Converts an ESRI labeling expression to a QGIS expression string.

Definition at line 836 of file qgsarcgisrestutils.cpp.

◆ convertLineStyle()

Qt::PenStyle QgsArcGisRestUtils::convertLineStyle ( const QString &  style)
static

Converts an ESRI line style to a Qt pen style.

Definition at line 867 of file qgsarcgisrestutils.cpp.

◆ convertRenderer()

QgsFeatureRenderer * QgsArcGisRestUtils::convertRenderer ( const QVariantMap &  rendererData)
static

Converts renderer JSON data to an equivalent QgsFeatureRenderer.

Caller takes ownership of the returned renderer.

Definition at line 758 of file qgsarcgisrestutils.cpp.

◆ convertSpatialReference()

QgsCoordinateReferenceSystem QgsArcGisRestUtils::convertSpatialReference ( const QVariantMap &  spatialReferenceMap)
static

Converts a spatial reference JSON definition to a QgsCoordinateReferenceSystem value.

Definition at line 375 of file qgsarcgisrestutils.cpp.

◆ convertSymbol()

QgsSymbol * QgsArcGisRestUtils::convertSymbol ( const QVariantMap &  definition)
static

Converts a symbol JSON definition to a QgsSymbol.

Caller takes ownership of the returned symbol.

Definition at line 409 of file qgsarcgisrestutils.cpp.

Friends And Related Function Documentation

◆ TestQgsArcGisRestUtils

friend class TestQgsArcGisRestUtils
friend

Definition at line 190 of file qgsarcgisrestutils.h.


The documentation for this class was generated from the following files: