Skip to content
Permalink
Browse files

Fix AMS identify

Fixes #41311
  • Loading branch information
elpaso authored and nyalldawson committed Feb 8, 2021
1 parent bcfe020 commit 9e56b8b4810863cfa29a8ee1eddfdf3dc00f4de6
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qgsmaptoolidentify.cpp
  2. +1 −1 src/providers/arcgisrest/qgsamsprovider.cpp
@@ -1065,7 +1065,7 @@ bool QgsMapToolIdentify::identifyRasterLayer( QList<IdentifyResult> *results, Qg
}

// list of feature stores for a single sublayer
const QgsFeatureStoreList featureStoreList = it.value().value<QgsFeatureStoreList>();
const QgsFeatureStoreList featureStoreList = value.value<QgsFeatureStoreList>();

for ( const QgsFeatureStore &featureStore : featureStoreList )
{
@@ -883,7 +883,7 @@ QgsRasterIdentifyResult QgsAmsProvider::identify( const QgsPointXY &point, QgsRa
params[QStringLiteral( "featureType" )] = attributesMap[resultMap[QStringLiteral( "displayFieldName" )].toString()].toString();
store.setParams( params );
store.addFeature( feature );
entries.insert( entries.size(), QVariant::fromValue( QList<QgsFeatureStore>() << store ) );
entries.insert( entries.size(), QVariant::fromValue( QgsFeatureStoreList() << store ) );
}
}
return QgsRasterIdentifyResult( format, entries );

0 comments on commit 9e56b8b

Please sign in to comment.