#3221 closed defect (fixed)
ST_GetFaceGeometry returns NULL for faces with no boundaries
Reported by: | strk | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.2.0 |
Component: | topology | Version: | master |
Keywords: | Cc: | robe |
Description
If you ask for a face having no bounds to ST_GetFaceGeometry, you get a NULL back. I'm not sure this is a sane behaviour.
Strictly speaking, a face with no boundaries would be a topological invalidity, so you should maybe get an exception thrown.
Or, if we want to be "tolerant", we could return a POLYGON EMPTY.
What do you think, Regina ?
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 2.1.x → trunk |
Changed to return empty with r13861
Note:
See TracTickets
for help on using tickets.
NOTE: raising an exception would currently break ValidateTopology, as it invokes ST_GetFaceGeometry as part of its operations. I guess an EMPTY return would play nicer with that.