Opened 10 years ago

Closed 9 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 Changed 10 years ago by mcayland

Hmmm. Your idea does sound more sensible to me.

comment:2 Changed 10 years ago by strk

Keywords: boxes added

comment:3 Changed 10 years ago by strk

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 Changed 10 years ago by strk

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

comment:5 Changed 9 years ago by strk

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