Skip to content
Permalink
Browse files

Fix WMS identify when using "Feature" format and the layer has named CRS

(cherry picked from commit 9ef91ea)
  • Loading branch information
wonder-sk committed Oct 28, 2016
1 parent 80e820f commit f3652069cf3b57608299e24d0e2097c28e2391e6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/wms/qgswmsprovider.cpp
@@ -2677,7 +2677,7 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPoint & thePoint, Qgs
QString crsType = result.property( "crs" ).property( "type" ).toString();
QString crsText;
if ( crsType == "name" )
crsText = result.property( "crs" ).property( "name" ).toString();
crsText = result.property( "crs" ).property( "properties" ).property( "name" ).toString();
else if ( crsType == "EPSG" )
crsText = QString( "%1:%2" ).arg( crsType, result.property( "crs" ).property( "properties" ).property( "code" ).toString() );
else
@@ -2773,6 +2773,7 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPoint & thePoint, Qgs
catch ( const QString &err )
{
QgsDebugMsg( QString( "JSON error: %1\nResult: %2" ).arg( err, QString::fromUtf8( mIdentifyResultBodies.value( jsonPart ) ) ) );
results.insert( results.size(), err ); // string returned for format type "feature" means error
}

delete coordinateTransform;

0 comments on commit f365206

Please sign in to comment.
You can’t perform that action at this time.