#567 closed defect (wontfix)
Geometry constructors fail from empty geometries
Reported by: | Paco Calvo | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 1.5.3 |
Component: | postgis | Version: | 1.5.X |
Keywords: | Cc: |
Description
Using PostGIS 1.5.1 on PostgreSQL 8.4.
Geometry constructors from text for empty geometries return always an empty geometry collection. Example:
select st_astext(st_geometryfromtext('POLYGON EMPTY')), st_astext(st_geomfromEWKT('srid=4230;POLYGON EMPTY')) "GEOMETRYCOLLECTION EMPTY";"GEOMETRYCOLLECTION EMPTY"
Note:
See TracTickets
for help on using tickets.
This is by design. PostGIS 2.0 will support typed EMPTY geometries, but prior to that typed empties get coerced into GEOMETRYCOLLECTION EMPTY.