Skip to content

Commit

Permalink
Rename feature info parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 23, 2015
1 parent 2d0f08b commit 335ce44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/qgswmsserver.cpp
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 335ce44

Please sign in to comment.