[Geoserver-users] Get by feature ID and set Extenet to the Feature ID's Extent

I am wanting to load a feature by the feature id, but i want to set the
extent to only show the object's extent not the "-130,24,-66,50". the
example I am using is the
/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=image/png&request=GetMap&layers=topp:states&width=550&height=250&srs=EPSG:4326&featureid=states.1
also I wanted to also add a layer called tornadowarnings to overlay on that
image. Is it possible to do this?
--
View this message in context: http://www.nabble.com/Get-by-feature-ID-and-set-Extenet-to-the-Feature-ID's-Extent-tp17086956p17086956.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Unfortunately I cant think of a good way to do it with a single wms call... although i can see this as a useful feature. Perhaps something we could support in the wms reflector. We could have it set up so that if no bounds is included in the request and a filter (like featureid) is provided the extent of those features matching the filter is used.

I am curious as to what other developers think of this? Chris do you want to go ahead and create a jira for the new feature request?

-Justin

chris1211 wrote:

I am wanting to load a feature by the feature id, but i want to set the
extent to only show the object's extent not the "-130,24,-66,50". the
example I am using is the
/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=image/png&request=GetMap&layers=topp:states&width=550&height=250&srs=EPSG:4326&featureid=states.1
also I wanted to also add a layer called tornadowarnings to overlay on that
image. Is it possible to do this?

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Justin Deoliveira ha scritto:

Unfortunately I cant think of a good way to do it with a single wms call... although i can see this as a useful feature. Perhaps something we could support in the wms reflector. We could have it set up so that if no bounds is included in the request and a filter (like featureid) is provided the extent of those features matching the filter is used.

I am curious as to what other developers think of this? Chris do you want to go ahead and create a jira for the new feature request?

May be useful for simple demos. One issue I see is that the natural
feature bbox ratio won't fit the width/height ratio of the generated
image. So for the reflector is good, but we either need to expand
the feature bbox so that it has the same ratio as the specified width/height, or do the opposite.
This may become tricky since in the reflector most parameters
are optional, so you'd end up having to handle all the possible
combinations, no?

Cheers
Andrea