[geos-devel] [GEOS] #559: EMPTY Centroid of tiny triangular polygon

GEOS geos-trac at osgeo.org
Fri Jun 22 07:01:17 PDT 2012

#559: EMPTY Centroid of tiny triangular polygon
 Reporter:  strk        |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:  3.3.5                     
Component:  Default     |     Version:  3.3.4                     
 Severity:  Unassigned  |    Keywords:                            

Comment(by strk):

 CentroidArea::area2 always returns 0 in the failing case, for all the
 involved triangles (3).

 Casting one of the vertices ordinate values to a long double (any of them)
 "fixes" the case.

Ticket URL: <http://trac.osgeo.org/geos/ticket/559#comment:3>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

More information about the geos-devel mailing list