[OpenLayers-Users] Zoom to Filter Extent

bartvde at osgis.nl bartvde at osgis.nl
Tue Nov 25 02:32:28 EST 2008


If you're using the GML parser have a look at:

http://trac.openlayers.org/ticket/1613

Even with maxfeatures=1 Mapserver will give back the boundedBy element for
the whole featureCollection, and you'll only end up downloading 1 feature.

Best regards,
Bart

> Hi,
>
>
>
> If you get an answer to this I would like to know about it as well.
>
>
>
> Currently, I do a filtered WFS request then I scan the geometry of all the
> polygons returned to the application and calculate a BBox for each; then I
> add to bounds and I end up with a BBox that includes my whole collection
> of
> filtered polygons. This process can be slow given the number of polygons
> and
> their size. To mitigate this I have preprocessed the polygons and added a
> BBox attribute on each polygon record inside the DB which means I can
> avoid
> the geometry parsing but I do not think I can avoid the WFS download which
> is now my bottleneck.
>
>
>
> Anyway, not sure if this helps you?
>
>
>
> Brad..
>
>
>
> From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
> On
> Behalf Of bmcbride
> Sent: Tuesday, November 25, 2008 1:41 AM
> To: users at openlayers.org
> Subject: [OpenLayers-Users] Zoom to Filter Extent
>
>
>
> Hello, I am working on an OpenLayers / GeoServer project and am trying to
> utilize the Filter tool, which is built into the GeoServer 1.7.0
> OpenLayers
> preview template. I would like to be able to zoom to the extent of the
> filtered features- so the user can basically enter a search, which
> performs
> a filter and zooms to the results. Is there any way to grab the extent of
> the current filter and perform some kind of ZoomtoFilterExtent call? My
> question is very similar to this post:
> http://www.nabble.com/searching-a-feature-with-open-layers-td13724745.html#a
> 13761443 Thanks!
>
>   _____
>
> View this message in context: Zoom
> <http://www.nabble.com/Zoom-to-Filter-Extent-tp20662111p20662111.html>  to
> Filter Extent
> Sent from the OpenLayers
> <http://www.nabble.com/OpenLayers-Users-f15907.html>  Users mailing list
> archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list