Skip to content

Commit

Permalink
Tolerance fixed in GetFeatureInfo for polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 15, 2018
1 parent 5765d49 commit edeefc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -2322,7 +2322,8 @@ namespace QgsWms
double mapUnitTolerance = 0.0;
if ( ml->geometryType() == QgsWkbTypes::PolygonGeometry )
{
if ( ! mWmsParameters.polygonTolerance().isEmpty() )
if ( ! mWmsParameters.polygonTolerance().isEmpty()
&& mWmsParameters.polygonToleranceAsInt() > 0 )
{
mapUnitTolerance = mWmsParameters.polygonToleranceAsInt() * rct.mapToPixel().mapUnitsPerPixel();
}
Expand Down

0 comments on commit edeefc9

Please sign in to comment.