Ticket #3811 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

'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

Changed 2 years ago by tamas

  • status changed from new to closed
  • resolution set to fixed

Applied in trunk (r11470)

Note: See TracTickets for help on using tickets.