Opened 14 years ago

Closed 13 years ago

#938 closed defect (fixed)

box2d of empty geom should be NULL

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

Description

shouldn't it ? Currently (2.0):

=# select gid, st_summary(the_geom), the_geom::box2d from cases;                      gid  |        st_summary        |   the_geom
------+--------------------------+--------------
 2416 | Polygon[ZM] with 1 rings | BOX(0 0,0 0)
      :    ring 0 has 0 points

Change History (5)

comment:1 by mcayland, 14 years ago

Hmmm. Your idea does sound more sensible to me.

comment:2 by strk, 14 years ago

Keywords: boxes added

comment:3 by strk, 14 years ago

Owner: changed from pramsey to strk
Status: newassigned

It turns out this ends up being the fault of lwgeom_is_empty, returning false for a polygon composed by an empty shell.

comment:4 by strk, 14 years ago

Fixed in r7307. Forget my previous comment, this was unrelated.

comment:5 by strk, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.