QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
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 QgsAbstractGeometry * | convertGeometry (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 QgsAbstractVectorLayerLabeling * | convertLabeling (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 QgsFeatureRenderer * | convertRenderer (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 QgsSymbol * | convertSymbol (const QVariantMap &definition) |
Converts a symbol JSON definition to a QgsSymbol. More... | |
Friends | |
class | TestQgsArcGisRestUtils |
Utility functions for working with ArcGIS REST services.
Definition at line 58 of file qgsarcgisrestutils.h.
|
static |
Converts ESRI JSON color data to a QColor object.
Definition at line 839 of file qgsarcgisrestutils.cpp.
|
static |
Converts a date time value to a QDateTime.
Definition at line 892 of file qgsarcgisrestutils.cpp.
|
static |
Converts an ESRI REST field type to a QVariant type.
Definition at line 44 of file qgsarcgisrestutils.cpp.
|
static |
Converts an ESRI fill style to a Qt brush style.
Definition at line 870 of file qgsarcgisrestutils.cpp.
|
static |
Converts an ESRI REST geometry JSON definition to a QgsAbstractGeometry.
Caller takes ownership of the returned object.
geometry | JSON geometry definition |
esriGeometryType | ESRI geometry type string |
hasM | set to true to if geometry includes M values |
hasZ | set to true to if geometry includes Z values |
crs | if specified will be set to the parsed geometry CRS |
Definition at line 336 of file qgsarcgisrestutils.cpp.
|
static |
Converts an ESRI REST geometry type to a WKB type.
Definition at line 75 of file qgsarcgisrestutils.cpp.
|
static |
Converts labeling JSON data to an equivalent QGIS vector labeling.
Caller takes ownership of the returned object.
Definition at line 608 of file qgsarcgisrestutils.cpp.
|
static |
Converts an ESRI labeling expression to a QGIS expression string.
Definition at line 821 of file qgsarcgisrestutils.cpp.
|
static |
Converts an ESRI line style to a Qt pen style.
Definition at line 852 of file qgsarcgisrestutils.cpp.
|
static |
Converts renderer JSON data to an equivalent QgsFeatureRenderer.
Caller takes ownership of the returned renderer.
Definition at line 743 of file qgsarcgisrestutils.cpp.
|
static |
Converts a spatial reference JSON definition to a QgsCoordinateReferenceSystem value.
Definition at line 375 of file qgsarcgisrestutils.cpp.
|
static |
Converts a symbol JSON definition to a QgsSymbol.
Caller takes ownership of the returned symbol.
Definition at line 394 of file qgsarcgisrestutils.cpp.
|
friend |
Definition at line 190 of file qgsarcgisrestutils.h.