Fix for zero-area-polygon centroid bug

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

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:

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]