Skip to content
Permalink
Browse files

Rename feature info parameters

  • Loading branch information
mhugent committed Feb 17, 2015
1 parent 2d0f08b commit 335ce446240cc53f8d9c13773032071071b311af
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/server/qgswmsserver.cpp
@@ -3093,7 +3093,7 @@ QgsRectangle QgsWMSServer::featureInfoSearchRect( QgsVectorLayer* ml, QgsMapRend
double mapUnitTolerance = 0.0;
if ( ml->geometryType() == QGis::Polygon )
{
QMap<QString, QString>::const_iterator tolIt = mParameters.find( "POLYGON_TOLERANCE" );
QMap<QString, QString>::const_iterator tolIt = mParameters.find( "FI_POLYGON_TOLERANCE" );
if ( tolIt != mParameters.constEnd() )
{
mapUnitTolerance = tolIt.value().toInt() * rct.mapToPixel().mapUnitsPerPixel();
@@ -3105,7 +3105,7 @@ QgsRectangle QgsWMSServer::featureInfoSearchRect( QgsVectorLayer* ml, QgsMapRend
}
else if ( ml->geometryType() == QGis::Line )
{
QMap<QString, QString>::const_iterator tolIt = mParameters.find( "LINE_TOLERANCE" );
QMap<QString, QString>::const_iterator tolIt = mParameters.find( "FI_LINE_TOLERANCE" );
if ( tolIt != mParameters.constEnd() )
{
mapUnitTolerance = tolIt.value().toInt() * rct.mapToPixel().mapUnitsPerPixel();
@@ -3117,7 +3117,7 @@ QgsRectangle QgsWMSServer::featureInfoSearchRect( QgsVectorLayer* ml, QgsMapRend
}
else //points
{
QMap<QString, QString>::const_iterator tolIt = mParameters.find( "POINT_TOLERANCE" );
QMap<QString, QString>::const_iterator tolIt = mParameters.find( "FI_POINT_TOLERANCE" );
if ( tolIt != mParameters.constEnd() )
{
mapUnitTolerance = tolIt.value().toInt() * rct.mapToPixel().mapUnitsPerPixel();

0 comments on commit 335ce44

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