[geos-devel] [GEOS] #582: GEOSGetCentroid seg faults on certain MultiPolygons
GEOS
geos-trac at osgeo.org
Sat Aug 25 23:30:54 PDT 2012
#582: GEOSGetCentroid seg faults on certain MultiPolygons
------------------------+---------------------------------------------------
Reporter: dazuma | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.3.5
Component: Default | Version: 3.3.4
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Consider the following MultiPolygon:
MULTIPOLYGON(EMPTY, ((0 1, 1 1, 1 0, 0 0, 0 1)))
I'm not completely clear on whether this should be considered a valid
MultiPolygon. Most calls handle it fine. However, calling
GEOSGetCentroid_r on it results in a segmentation fault.
The seg fault seems to happen when the MultiPolygon contains at least one
EMPTY polygon *and* at least one non-empty polygon. MultiPolygons
containing only EMPTYs or only non-emptys work fine.
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/582>
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