Skip to content
Permalink
Browse files

Use gml feature id also for non-gml output formats of WMS GetFeatureInfo

  • Loading branch information
mhugent committed Feb 20, 2018
1 parent 26cf317 commit a3de8e2d12a97a6f9e4872b82c7a29d7606cb1c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/qgswmsserver.cpp
@@ -2426,7 +2426,7 @@ int QgsWMSServer::featureInfoFromVectorLayer( QgsVectorLayer* layer,
else
{
QDomElement featureElement = infoDocument.createElement( "Feature" );
featureElement.setAttribute( "id", FID_TO_STRING( feature.id() ) );
featureElement.setAttribute( "id", featureGmlId( &feature, layer->dataProvider()->pkAttributeIndexes() ) );
layerElement.appendChild( featureElement );

//read all attribute values from the feature

0 comments on commit a3de8e2

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