Opened 13 years ago

Closed 13 years ago

#3811 closed defect (fixed)

'GEOMETRYCOLLECTION EMPTY' causes 'Unsupported GEOS geometry type' error

Reported by: tamas Owned by: tamas
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

Various geometry operations may return 'GEOMETRYCOLLECTION EMPTY' which should be converted to null instead or raising an error.

To fix this we may use this condition in the default case of msGEOSGeometry2Shape:

if (!GEOSisEmpty(g))
        msSetError(MS_GEOSERR, "Unsupported GEOS geometry type (%d).", "msGEOSGeometry2Shape()", type);

Change History (1)

comment:1 by tamas, 13 years ago

Resolution: fixed
Status: newclosed

Applied in trunk (r11470)

Note: See TracTickets for help on using tickets.