Just looking to find out if it is possible to retrieve the extent/boundary information of a filtered map, that is, the bounding box that contains all of the matching features in the filter.
Is this possible?
Brad
–
Bradley Mclain
Systems Administrator Trainee
De Bortoli Wines Pty limited
De Bortoli Rd, BILBUL NSW 2680
e: bradley_mclain@anonymised.com
Hi Brad,
The only way I can think of would be to convert the getMap request to a wfs GetFeature request. It would be relatively easy... basically just take the "layers" parameter and rename it to "typename". The filter parameter would stay the same.
-Justin
Bradley McLain wrote:
Just looking to find out if it is possible to retrieve the extent/boundary information of a filtered map, that is, the bounding box that contains all of the matching features in the filter.
Is this possible?
Brad
--
Bradley Mclain
Systems Administrator Trainee
De Bortoli Wines Pty limited
De Bortoli Rd, BILBUL NSW 2680
e: bradley_mclain@anonymised.com <mailto:bradley_mclain@anonymised.com>
------------------------------------------------------------------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
Bradley McLain ha scritto:
Just looking to find out if it is possible to retrieve the extent/boundary information of a filtered map, that is, the bounding box that contains all of the matching features in the filter.
Is this possible?
Hum, no, there is no such a method. The closest thing I can
think of is making up a GetFeature request that mixes your
filter with whatever eventual filtering the SLD is already
doing, and enable feature bounds generation in config/wfs/contents.
There are two downsides thought:
- you have to know in advance if the SLD is diong any filtering
and account for it (e.g., and SLD that paints only highways),
and that might be scale dependent too
- the GetFeature request will return also the features.
You can limit what you're going to receive by just
asking for one small property, but there is no way to
just get the summary line on top (the one that contains
bounds and feature count).
I guess your use case is to make a selection by using
a WMS filter, and after that, zoom onto the results?
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.