Skip to content

Commit

Permalink
Fix AMS identify
Browse files Browse the repository at this point in the history
Fixes #41311
  • Loading branch information
elpaso authored and nyalldawson committed Feb 8, 2021
1 parent bcfe020 commit 9e56b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsamsprovider.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 9e56b8b

Please sign in to comment.