Skip to content

Commit

Permalink
Also handle WMS feature info mimetype application/geo+json
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 7, 2023
1 parent 1b290bc commit 2aaf29a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/wms/qgswmscapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ bool QgsWmsCapabilities::parseResponse( const QByteArray &response, QgsWmsParser
format = QgsRaster::IdentifyFormatFeature;
else if ( f == QLatin1String( "application/geojson" ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f == QLatin1String( "application/geo+json" ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f.contains( QLatin1String( "gml" ), Qt::CaseInsensitive ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f == QLatin1String( "text/xml" ) )
Expand Down Expand Up @@ -2009,6 +2011,8 @@ void QgsWmsCapabilities::parseWMTSContents( const QDomElement &element )
fmt = QgsRaster::IdentifyFormatFeature;
else if ( format == QLatin1String( "application/geojson" ) )
fmt = QgsRaster::IdentifyFormatFeature;
else if ( format == QLatin1String( "application/geo+json" ) )
fmt = QgsRaster::IdentifyFormatFeature;
else
{
QgsDebugMsg( QStringLiteral( "Unsupported featureInfoUrl format: %1" ).arg( format ) );
Expand Down Expand Up @@ -2262,6 +2266,8 @@ void QgsWmsCapabilities::parseWMTSContents( const QDomElement &element )
fmt = QgsRaster::IdentifyFormatFeature;
else if ( format == QLatin1String( "application/geojson" ) )
fmt = QgsRaster::IdentifyFormatFeature;
else if ( format == QLatin1String( "application/geo+json" ) )
fmt = QgsRaster::IdentifyFormatFeature;
else
{
QgsDebugMsg( QStringLiteral( "Unsupported featureInfoUrl format: %1" ).arg( format ) );
Expand Down

0 comments on commit 2aaf29a

Please sign in to comment.