Opened 13 years ago

Closed 13 years ago

#1441 closed defect (fixed)

ST_Dimension should respect type of EMPTIES

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

Currently ST_Dimension returns 0 for empties, no matter type. We should instead return a value reflecting the type.

Change History (3)

comment:1 by strk, 13 years ago

tshaub suggests -1 for collections

comment:2 by strk, 13 years ago

The manual documents that the maximum dimension is returned for collection of mixed spatial types. I'm not sure how's that useful.

comment:3 by strk, 13 years ago

Resolution: fixed
Status: newclosed

Fixed by r8748

Note: See TracTickets for help on using tickets.