[Geoserver-users] Calculating Bounding Box with Geoserver

Hi all,

I have two layers from mysql load in Geoserver. I have activate only the WMS
service, and I need to calculate dinamically the bounding box of a entitys.
Can I use the function that Geoserver use to calculate this bounding box in
the entity editor from my application?, do you know wich is the best form to
calculate it through Geoserver?

Thanks to all.
--
View this message in context: http://www.nabble.com/Calculating-Bounding-Box-with-Geoserver-tp24255848p24255848.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Micho ha scritto:

Hi all,

I have two layers from mysql load in Geoserver. I have activate only the WMS
service, and I need to calculate dinamically the bounding box of a entitys.
Can I use the function that Geoserver use to calculate this bounding box in
the entity editor from my application?, do you know wich is the best form to
calculate it through Geoserver?

WMS alone does not provide any means to compute the bounding box of an
entity. I guess you can write your own REST extension in Java and perform the computation on your own in it?
There are some pointers here:
http://geoserver.org/display/GEOSDOC/REST+Support+Module

(note to self: in these cases having the ability to write a restlet
  in a scripting language and just have it working by dumping the
  script in the data dir would be really great)

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.