54 static QVariantMap getServiceInfo(
const QString &baseurl,
const QString &authcfg, QString &errorTitle, QString &errorText,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
const QString &urlPrefix = QString() );
59 static QVariantMap getLayerInfo(
const QString &layerurl,
const QString &authcfg, QString &errorTitle, QString &errorText,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
const QString &urlPrefix = QString() );
64 static QVariantMap getObjectIds(
const QString &layerurl,
const QString &authcfg, QString &errorTitle, QString &errorText,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
const QString &urlPrefix = QString(),
66 const QString &whereClause = QString() );
74 static QgsRectangle getExtent(
const QString &layerurl,
const QString &whereClause,
const QString &authcfg,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
const QString &urlPrefix = QString() );
79 static QVariantMap getObjects(
const QString &layerurl,
const QString &authcfg,
const QList<quint32> &objectIds,
const QString &
crs,
80 bool fetchGeometry,
const QStringList &fetchAttributes,
bool fetchM,
bool fetchZ,
86 static QList<quint32> getObjectIdsByExtent(
const QString &layerurl,
const QgsRectangle &filterRect, QString &errorTitle, QString &errorText,
const QString &authcfg,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
QgsFeedback *feedback =
nullptr,
87 const QString &whereClause = QString(),
const QString &urlPrefix = QString() );
92 static QByteArray queryService(
const QUrl &url,
const QString &authcfg, QString &errorTitle, QString &errorText,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
QgsFeedback *feedback =
nullptr, QString *contentType =
nullptr,
const QString &urlPrefix = QString() );
97 static QVariantMap queryServiceJSON(
const QUrl &url,
const QString &authcfg, QString &errorTitle, QString &errorText,
const QgsHttpHeaders &requestHeaders =
QgsHttpHeaders(),
QgsFeedback *feedback =
nullptr,
const QString &urlPrefix = QString() );
102 static void visitFolderItems(
const std::function<
void (
const QString &folderName,
const QString &url )> &visitor,
const QVariantMap &serviceData,
const QString &baseUrl );
107 static void visitServiceItems(
const std::function<
void (
const QString &serviceName,
const QString &url,
Qgis::ArcGisRestServiceType serviceType )> &visitor,
const QVariantMap &serviceData,
const QString &baseUrl );
112 static void addLayerItems(
const std::function<
void (
const QString &parentLayerId, ServiceTypeFilter serviceType,
Qgis::GeometryType geometryType,
const QString &layerId,
const QString &name,
const QString &description,
const QString &url,
bool isParentLayer,
const QgsCoordinateReferenceSystem &
crs,
const QString &format )> &visitor,
const QVariantMap &serviceData,
const QString &parentUrl,
const QString &parentSupportedFormats,
const ServiceTypeFilter filter = ServiceTypeFilter::AllTypes );
117 static QUrl parseUrl(
const QUrl &url,
bool *isTestEndpoint =
nullptr );
121 static void adjustBaseUrl( QString &baseUrl,
const QString &name );
123 friend class TestQgsArcGisRestUtils;