[Geoserver-users] Creat BBOX from Area of Feature Query

I have a layer named tornado warnings i want to be able to click on the
feature id and
get the results like this page but the bbox only set to only the area of
that queryd (automatically generate bbox of the select feature). so if my
map standard bbox was -130,22,-60,51 and the tornado warning was
-110,23,-90,61 it would only show the that tornado poly feature 2 covered,
is this possible?
so far i have got this far
http://gis.local.net:8080/geoserver/wms?bbox=-130.79638767242386,22.392311344146744,-60.904883384704625,51.935390224456754&styles=&Format=application/pdf&request=GetMap&version=1.1.1&layers=uscounty,topp:torpoly&width=800&height=317&srs=EPSG:4326
--
View this message in context: http://www.nabble.com/Creat-BBOX-from-Area-of-Feature-Query-tp20984782p20984782.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I am not sure if I 100% understand but I believe the answer is no, not with a single query. GeoServer wms supports filters other than bbox, but those filters are not used to "infer" a bounds when one is not specified.

For instance, you could append "&featureid=<fid>" to a wms getMap request and have only that feature rendered, but that would force the bounding box to be the bounding box of the that feature. However I could see a case for this as an improvement. Andrea what are your thoughts?

Apologies if I am misunderstanding the request.

-Justin

chris1211 wrote:

I have a layer named tornado warnings i want to be able to click on the
feature id and get the results like this page but the bbox only set to only the area of
that queryd (automatically generate bbox of the select feature). so if my
map standard bbox was -130,22,-60,51 and the tornado warning was -110,23,-90,61 it would only show the that tornado poly feature 2 covered,
is this possible?
so far i have got this far
http://gis.local.net:8080/geoserver/wms?bbox=-130.79638767242386,22.392311344146744,-60.904883384704625,51.935390224456754&styles=&Format=application/pdf&request=GetMap&version=1.1.1&layers=uscounty,topp:torpoly&width=800&height=317&srs=EPSG:4326

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Dear Chris and all ..

chris1211 wrote:

I have a layer named tornado warnings i want to be able to click on the
feature id and get the results like this page but the bbox only set to only the area of
that queryd (automatically generate bbox of the select feature). so if my
map standard bbox was -130,22,-60,51 and the tornado warning was -110,23,-90,61 it would only show the that tornado poly feature 2 covered,
is this possible?
so far i have got this far
http://gis.local.net:8080/geoserver/wms?bbox=-130.79638767242386,22.392311344146744,-60.904883384704625,51.935390224456754&styles=&Format=application/pdf&request=GetMap&version=1.1.1&layers=uscounty,topp:torpoly&width=800&height=317&srs=EPSG:4326
  
This is my opinion as a Geoserver dumb user ...
I Think you better see Geoserver as WMS server alone ...
If you want to i.e more specific/smaller BBOX margin and center of map ... you better do it in a WMS Client application ...
Currently ... I'm also a dummy user of OpenGTS.
I'm trying play with OpenGTS and use Geoserver as BaseMap Provider.

So .. If you have some Storm Tracking monitor that can provide data in TCP/UDP .... inject it to OpenGTS .. and use opengts's "Track" feature to display it.
Or .. If you familiar with other web application scripting ..... I'm sure you can play with openlayer.

If it OK to you to thread a storm as "vehicle", OpenGTS will make you happy.
But Still .... there is no "dynamic BBOX margin" in OpenGTS.

Sincerely
-bino-

Justin Deoliveira ha scritto:

I am not sure if I 100% understand but I believe the answer is no, not with a single query. GeoServer wms supports filters other than bbox, but those filters are not used to "infer" a bounds when one is not specified.

For instance, you could append "&featureid=<fid>" to a wms getMap request and have only that feature rendered, but that would force the bounding box to be the bounding box of the that feature. However I could see a case for this as an improvement. Andrea what are your thoughts?

That this does not look like a legitimate case for a standard WMS
request, but more of a "wms reflector" like approach (http://blog.geoserver.org/2007/12/07/wms-reflector/).
Afaik the reflector already fills in the bbox when missing, but it
uses the layers bounds... we could have it recognize the presence
of filters and find out which are the bounds of the filtered features
instead.

Cheers
Andrea

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

That this does not look like a legitimate case for a standard WMS
request, but more of a "wms reflector" like approach (http://blog.geoserver.org/2007/12/07/wms-reflector/).
Afaik the reflector already fills in the bbox when missing, but it
uses the layers bounds... we could have it recognize the presence
of filters and find out which are the bounds of the filtered features
instead.

Yeah, that is a great idea. Chris feel free to open a feature request in the bug tracker.

Cheers
Andrea

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.