Quantcast

Fix for zero-area-polygon centroid bug

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fix for zero-area-polygon centroid bug

Martin Davis
A PostGIS user uncovered a long-standing bug in Geometry.centroid() - an
inability to handle certain polygons with close to zero-area.  (See this
thread on the PostGIS-Users list:

http://postgis.refractions.net/pipermail/postgis-users/2008-December/022148.html
)

I've fixed JTS so that Geometry.centroid() now handles any
(close-to-)zero-area polygons correctly (by returning the centroid of
the linework instead).

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Loading...