[postgis-users] Get BBox from different kind of geometry

David William Bitner bitner at gyttja.org
Wed Jun 11 06:53:26 PDT 2008


Luca,

For zoom-to type applications, I prefer to use ST_expand on all
geometry types.  This makes sure also that a polygon isn't butting up
completely against the edges of my maps.

David

On Wed, Jun 11, 2008 at 8:43 AM, doktoreas <thedoktor78 at gmail.com> wrote:
>
> Hello everybody,
> I have a db with different kind of geometry that I show using Geoserver and
> OpenLayers.
> For creating a simple "zoom-to-feature" function, I need to get the BBox
> value for each geometry; this is not a problem for polygon and lines ( with
> envelope function)  but, as it's normal, can't be done for point.
> My first idea is to get the point location and creating a custom BBox from
> that by adding/subtracting a fixed value to the x,y.
>
> Is there a better way for doing this?
>
> Thanks
> Luca
> --
> View this message in context: http://www.nabble.com/Get-BBox-from-different-kind-of-geometry-tp17777956p17777956.html
> Sent from the PostGIS - User mailing list archive at Nabble.com.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



-- 
************************************
David William Bitner



More information about the postgis-users mailing list