Skip to content
Permalink
Browse files

Tolerance fixed in GetFeatureInfo for polygons

  • Loading branch information
pblottiere committed Oct 15, 2018
1 parent 5765d49 commit edeefc9e42a90f9040d2bceb14756c7cf823e7f4
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -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();
}

0 comments on commit edeefc9

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