Skip to content

Commit 263d89c

Browse files
committedMay 21, 2015
[BUGFIX] GetFeatureInfo STYLES and FILTER used together
In GetFeatureInfo WMS Request, if STYLES and FILTER are used together, it's like FILTER is not applied. To fix it, we check in the QgsMapLayerRegistry if the layers associated to QUERY_LAYERS has already created.
1 parent 19c1dc6 commit 263d89c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/server/qgswmsserver.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,11 @@ int QgsWMSServer::getFeatureInfo( QDomDocument& result, QString version )
14971497
{
14981498
continue;
14991499
}
1500+
QgsMapLayer * registeredMapLayer = QgsMapLayerRegistry::instance()->mapLayer( currentLayer->id() );
1501+
if ( registeredMapLayer )
1502+
{
1503+
currentLayer = registeredMapLayer;
1504+
}
15001505

15011506
//skip layer if not visible at current map scale
15021507
bool useScaleConstraint = ( scaleDenominator > 0 && currentLayer->hasScaleBasedVisibility() );

0 commit comments

Comments
 (0)
Please sign in to comment.