123 static QMetaType::Type convertFieldType(
const QString &type );
128 static Qgis::WkbType convertGeometryType(
const QString &type );
174 static QString convertLabelingExpression(
const QString &
string );
179 static QColor convertColor(
const QVariant &data );
184 static Qt::PenStyle convertLineStyle(
const QString &style );
189 static Qt::BrushStyle convertFillStyle(
const QString &style );
194 static QDateTime convertDateTime(
const QVariant &value );
221 static QgsRectangle convertRectangle(
const QVariant &value );
230 IncludeGeometry = 1 << 0,
231 IncludeNonObjectIdAttributes = 1 << 1,
248 static QVariantMap featureToJson(
const QgsFeature &feature,
258 static QVariant variantToAttributeValue(
const QVariant &variant, QMetaType::Type expectedType,
const QgsArcGisRestContext &context );
265 static QVariantMap fieldDefinitionToJson(
const QgsField &field );
279 static std::unique_ptr< QgsPoint > convertPoint(
const QVariantList &list,
Qgis::WkbType type );
286 static std::unique_ptr< QgsCircularString > convertCircularString(
const QVariantMap &data,
Qgis::WkbType type,
const QgsPoint &startPoint );
291 static std::unique_ptr< QgsCompoundCurve > convertCompoundCurve(
const QVariantList &list,
Qgis::WkbType type );
296 static std::unique_ptr< QgsPoint > convertGeometryPoint(
const QVariantMap &data,
Qgis::WkbType pointType );
301 static std::unique_ptr< QgsMultiPoint > convertMultiPoint(
const QVariantMap &geometryData,
Qgis::WkbType pointType );
306 static std::unique_ptr< QgsMultiCurve > convertGeometryPolyline(
const QVariantMap &data,
Qgis::WkbType pointType );
311 static std::unique_ptr< QgsMultiSurface > convertGeometryPolygon(
const QVariantMap &data,
Qgis::WkbType pointType );
316 static std::unique_ptr< QgsPolygon > convertEnvelope(
const QVariantMap &data );
318 static std::unique_ptr< QgsLineSymbol > parseEsriLineSymbolJson(
const QVariantMap &symbolData );
319 static std::unique_ptr< QgsFillSymbol > parseEsriFillSymbolJson(
const QVariantMap &symbolData );
320 static std::unique_ptr< QgsFillSymbol > parseEsriPictureFillSymbolJson(
const QVariantMap &symbolData );
321 static std::unique_ptr< QgsMarkerSymbol > parseEsriMarkerSymbolJson(
const QVariantMap &symbolData );
322 static std::unique_ptr< QgsMarkerSymbol > parseEsriPictureMarkerSymbolJson(
const QVariantMap &symbolData );
323 static std::unique_ptr< QgsMarkerSymbol > parseEsriTextMarkerSymbolJson(
const QVariantMap &symbolData );
327 static QVariantMap pointToJson(
const QgsPoint *point );
328 static QVariantMap multiPointToJson(
const QgsMultiPoint *multiPoint );
329 static QVariantList lineStringToJsonPath(
const QgsLineString *line );
330 static QVariantList curveToJsonCurve(
const QgsCurve *curve,
bool includeStart );
331 static QVariantMap lineStringToJson(
const QgsLineString *line );
332 static QVariantMap curveToJson(
const QgsCurve *curve );
334 static QVariantMap multiCurveToJson(
const QgsMultiCurve *multiCurve );
335 static QVariantList polygonToJsonRings(
const QgsPolygon *polygon );
336 static QVariantList curvePolygonToJsonRings(
const QgsCurvePolygon *polygon );
337 static QVariantMap polygonToJson(
const QgsPolygon *polygon );
338 static QVariantMap curvePolygonToJson(
const QgsCurvePolygon *polygon );
339 static QVariantMap multiPolygonToJson(
const QgsMultiPolygon *polygon );
340 static QVariantMap multiSurfaceToJson(
const QgsMultiSurface *multiSurface );
342 friend class TestQgsArcGisRestUtils;
Contains the context of a ArcGIS REST service operation.
void setTimeZone(const QTimeZone &zone)
Sets the time zone for datetime values.
QTimeZone timeZone() const
Returns the time zone for datetime values.
QString objectIdFieldName() const
Returns the name of the objectId field.
void setObjectIdFieldName(const QString &name)
Sets the name of the objectId field.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)