Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#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"

Change History (2)

comment:1 by pramsey, 13 years ago

Resolution: wontfix
Status: newclosed

This is by design. PostGIS 2.0 will support typed EMPTY geometries, but prior to that typed empties get coerced into GEOMETRYCOLLECTION EMPTY.

comment:2 by Paco Calvo, 13 years ago

Thank you very much for the explanation.

Note: See TracTickets for help on using tickets.