Skip to content
Permalink
Browse files

Fix AMS identify

Fixes #41311
  • Loading branch information
elpaso authored and github-actions committed Feb 8, 2021
1 parent a8b288d commit 6b302beb177815c2d12d568f92cc2508fea6abd6
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qgsmaptoolidentify.cpp
  2. +1 −1 src/providers/arcgisrest/qgsamsprovider.cpp
@@ -1042,7 +1042,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 6b302be

Please sign in to comment.