[mapserver-commits] r8585 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Feb 18 22:55:01 EST 2009
Author: sdlime
Date: 2009-02-18 22:55:00 -0500 (Wed, 18 Feb 2009)
New Revision: 8585
Modified:
trunk/mapserver/mapprimitive.c
Log:
Restored missing code to check MINFEATURESIZE when computing polygon a label point. (#2897)
Modified: trunk/mapserver/mapprimitive.c
===================================================================
--- trunk/mapserver/mapprimitive.c 2009-02-19 00:36:01 UTC (rev 8584)
+++ trunk/mapserver/mapprimitive.c 2009-02-19 03:55:00 UTC (rev 8585)
@@ -1085,6 +1085,9 @@
maxx = p->bounds.maxx;
maxy = p->bounds.maxy;
+ if(min_dimension != -1)
+ if(MS_MIN(maxx-minx,maxy-miny) < min_dimension) return(MS_FAILURE);
+
cp.x = (maxx+minx)/2.0;
cp.y = (maxy+miny)/2.0;
More information about the mapserver-commits
mailing list