Ticket #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
Note: See
TracTickets for help on using
tickets.
