Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#566 closed defect (wontfix)

ST_IsValid fails with empty polygons

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.

ST_IsValid returns false for empty polygons stored from EWKB. Example:

select the_geom, st_asewkt(the_geom), st_isempty(the_geom) from table limit 1

"01030000208610000000000000";"SRID=4230;POLYGON EMPTY";f

Change History (2)

comment:1 by pramsey, 14 years ago

Resolution: wontfix
Status: newclosed

Lots of functions are going to return odd things for POLYGON EMPTY because typed empties are not really supported pre-2.0. Unless this is actually impeding real work I'd rather put this off to 2.0 where typed empties are explicitly supported.

comment:2 by Paco Calvo, 14 years ago

This example is derived from real work, but was intended to test how PostGis 1.5 deals with empty geometries, so it doesn't impedes real work.

Thank you for your answer.

Note: See TracTickets for help on using tickets.