15 #ifndef QGSARCGISRESTUTILS_H
16 #define QGSARCGISRESTUTILS_H
24 #include <QStringList>
65 static QVariant::Type convertFieldType(
const QString &type );
116 static QString convertLabelingExpression(
const QString &
string );
121 static QColor convertColor(
const QVariant &data );
126 static Qt::PenStyle convertLineStyle(
const QString &style );
131 static Qt::BrushStyle convertFillStyle(
const QString &style );
136 static QDateTime convertDateTime(
const QVariant &value );
143 static std::unique_ptr< QgsPoint > convertPoint(
const QVariantList &list,
QgsWkbTypes::Type type );
150 static std::unique_ptr< QgsCircularString > convertCircularString(
const QVariantMap &data,
QgsWkbTypes::Type type,
const QgsPoint &startPoint );
155 static std::unique_ptr< QgsCompoundCurve > convertCompoundCurve(
const QVariantList &list,
QgsWkbTypes::Type type );
160 static std::unique_ptr< QgsPoint > convertGeometryPoint(
const QVariantMap &data,
QgsWkbTypes::Type pointType );
165 static std::unique_ptr< QgsMultiPoint > convertMultiPoint(
const QVariantMap &geometryData,
QgsWkbTypes::Type pointType );
170 static std::unique_ptr< QgsMultiCurve > convertGeometryPolyline(
const QVariantMap &data,
QgsWkbTypes::Type pointType );
175 static std::unique_ptr< QgsMultiSurface > convertGeometryPolygon(
const QVariantMap &data,
QgsWkbTypes::Type pointType );
180 static std::unique_ptr< QgsPolygon > convertEnvelope(
const QVariantMap &data );
182 static std::unique_ptr< QgsLineSymbol > parseEsriLineSymbolJson(
const QVariantMap &symbolData );
183 static std::unique_ptr< QgsFillSymbol > parseEsriFillSymbolJson(
const QVariantMap &symbolData );
184 static std::unique_ptr< QgsFillSymbol > parseEsriPictureFillSymbolJson(
const QVariantMap &symbolData );
185 static std::unique_ptr< QgsMarkerSymbol > parseEsriMarkerSymbolJson(
const QVariantMap &symbolData );
186 static std::unique_ptr< QgsMarkerSymbol > parseEsriPictureMarkerSymbolJson(
const QVariantMap &symbolData );
190 friend class TestQgsArcGisRestUtils;
193 #endif // QGSARCGISRESTUTILS_H