From 2d3414a0417ddfdd951e899881f9dca536488663 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 16 Oct 2019 11:11:55 +0200 Subject: [PATCH] [OAPIF provider] Add workaround for QGIS server 3.10.0 --- src/providers/wfs/qgsoapiflandingpagerequest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/providers/wfs/qgsoapiflandingpagerequest.cpp b/src/providers/wfs/qgsoapiflandingpagerequest.cpp index abdbd50deb1..b469a7c9a16 100644 --- a/src/providers/wfs/qgsoapiflandingpagerequest.cpp +++ b/src/providers/wfs/qgsoapiflandingpagerequest.cpp @@ -102,6 +102,14 @@ void QgsOapifLandingPageRequest::processReply() apiTypes ); } #endif +#ifndef REMOVE_SUPPORT_QGIS_SERVER_3_10_0_WRONG_SERVICE_DESC + if ( mApiUrl.isEmpty() ) + { + mApiUrl = QgsOAPIFJson::findLink( links, + QStringLiteral( "service_desc" ), + apiTypes ); + } +#endif QStringList collectionsTypes; collectionsTypes << QStringLiteral( "application/json" );