[OpenLayers-Users] is there really no way to get the layer extent
from wms layers?
Andreas Hocevar
ahocevar at opengeo.org
Mon Aug 15 08:53:23 EDT 2011
For WMS, all you get is the layer extent advertised in the
GetCapabilities document. This is what is explained in the 2nd post you
linked.
If you need the extent of a filtered subset, you need to use WFS. You
don't have to parse the features, you only need the BBOX that WFS
GetFeature returns as part of its response. But you still have to
transfer the whole XML document. If you want to save that, you could use
WPS with a process that takes a filter and a layer name as input and
returns the extent of the filtered subset.
Andreas.
On 2011-08-15 11:14, Robert Buckley wrote:
>
>
>
> Hi,
>
> I read this about not being able to zoom to wms layer extents. Is this true?
>
> http://osgeo-org.1803224.n2.nabble.com/Zoom-to-dinamic-WMS-Layer-td5329527.html
>
> , but how about this?
>
> http://smalgin.gisxpert.com/2009/06/open-layers-zoom-to-extent-wms/
>
> didn´t work for me though.
>
>
> yours,
>
> Rob
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list