Ticket #938 (closed defect: fixed)

Opened 2 years ago

Last modified 17 months ago

box2d of empty geom should be NULL

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
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

Changed 2 years ago by mcayland

Hmmm. Your idea does sound more sensible to me.

Changed 2 years ago by strk

  • keywords boxes added

Changed 2 years ago by strk

  • owner changed from pramsey to strk
  • status changed from new to assigned

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

Changed 2 years ago by strk

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

Changed 17 months ago by strk

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.