On Wednesday, October 21, 2009, Jimmy Aumard <[email protected]> wrote: > Hi everyone, > > I try to find a method to download an entire WFS layers but OpenLayers put > the bbox of current viewport. > <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <wfs:Query typeName="feature:franchises" srsName="EPSG:900913" > xmlns:feature="http://www.openplans.org/topp"><ogc:Filter > xmlns:ogc="http://www.opengis.net/ogc"> > <ogc:BBOX> > <ogc:PropertyName>the_geom</ogc:PropertyName> > <gml:Envelope xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"> > <gml:lowerCorner>-3072157.040273 4777008.5190921</gml:lowerCorner> > <gml:upperCorner>3805952.5117085 7120262.0577829</gml:upperCorner> > </gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query> > </wfs:GetFeature>It's possible to give a specific bbox to the request or > don't use bbox? > Can you help me?
do you use Layer.WFS? You should use Layer.Vector, and configured your vector layers with a Protocol.WFS and a Strategy.Fixed. The latter being what will make the entire WFS layer being loaded when the layer is added to the map. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
