[OpenLayers-Dev] WFS 1.1.0 and GML3.

Steven M. Ottens steven at minst.net
Thu Jan 22 07:42:04 EST 2009

Hi all,

I'm trying to implement a WFS 1.1.0 viewer using OpenLayers, nothing  
fancy I just want the features within a given bounding box. Being WFS  
1.1.0 it gives me a GML 3.1.1. At the moment de WFS layer in  
OpenLayers is hardcoded to 1.0.0. I'm wondering if anyone has already  
tried a similar thing (crschmidt told me to look at you tschaub ;)
Apart from the version number a few things seem to be different in  
WFS 1.1.0 requests. I am no expert but after a lot of trial and error  
I came up with this request which works.

I just want the place names within a given boundingbox:

&filter=<Filter xmlns:GN="urn:x-inspire:specification:gmlas- 
v31:GeographicalNames:2.0" xmlns:gml="http://www.opengis.net/gml">
<gml:lowerCorner>0 50</gml:lowerCorner>
<gml:upperCorner>10 60</gml:upperCorner>

Whereas the WFS demo of OpenLayers requests:


Two things are different:
1. namespaces are defined
2. it uses filter instead of bbox

If I try to use BBOX=.. I get an error: "Parameter 'BBOX' is  
currently not supported. Please use the 'FILTER' parameter instead."  
So I need to use the filter parameter.

Has someone already tried to implement filters in OL and if not, what  
would be the best place to do so?


More information about the Dev mailing list