[postgis-devel] lwgeom_calculate_bbox

Sandro Santilli strk at keybit.net
Mon Mar 21 02:13:44 PDT 2011


On Sun, Mar 20, 2011 at 12:04:52PM -0700, Paul Ramsey wrote:

> Could you sketch out what the heck raster is doing with boxes, and
> whether it's actually required or was just a mind-jump ("i need a box,
> hey, here's a box type!") during development.

Rasters just provides implicit casts from raster to box2d.

The idea was that casting to a bounding box isn't necessarely
the same of casting to a geometry, from a semantic point of view.

This is especially true for TopoGeometry, where you probably want
a full-defined Geometry, not a box, when casting.

But then again, maybe it is just bad to rely implicit casting...

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list