[OAPIF provider] Add workaround for QGIS server 3.10.0

This commit is contained in:
Even Rouault 2019-10-16 11:11:55 +02:00 committed by Nyall Dawson
parent c7f29d501f
commit 2d3414a041

View File

@ -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" );