[OpenLayers-Dev] WFS 1.1.0 and GML3.1.1.1.1

Steven M. Ottens steven at minst.net
Thu Jan 22 08:52:01 EST 2009


Hi Bart

Just applying the patch to the latest SVN works for me:
http://research.geodan.nl/egn/

I now just need to figure out how to add a popup with the actual name  
to it

Thanks a lot
Steven

On Jan 22, 2009, at 1:49 PM, bartvde at osgis.nl wrote:

> Hi Steven,
>
> see:
>
> http://trac.openlayers.org/ticket/1648
>
> There are plans to get this stuff into trunk, but it's not yet in.
>
> So you need to use Layer.Vector with Protocol.WFS and the right  
> Strategy
> (BBOX in your case).
>
> Best regards,
> Bart
>
>> 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:
>>
>> http://egn.geodan.nl/egn_esdin_1/services
>> ?typename=GN%3ANamedPlace
>> &maxfeatures=10
>> &SERVICE=WFS
>> &VERSION=1.1.0
>> &REQUEST=GetFeature
>> &namespace=xmlns%28GN=urn:x-inspire:specification:gmlas-
>> v31:GeographicalNames:2.0%29
>> &SRS=EPSG%3A4326
>> &filter=<Filter xmlns:GN="urn:x-inspire:specification:gmlas-
>> v31:GeographicalNames:2.0" xmlns:gml="http://www.opengis.net/gml">
>> <Within>
>> <PropertyName>GN:geometry</PropertyName>
>> <Envelope>
>> <gml:lowerCorner>0 50</gml:lowerCorner>
>> <gml:upperCorner>10 60</gml:upperCorner>
>> </Envelope>
>> </Within>
>> </Filter>
>>
>> Whereas the WFS demo of OpenLayers requests:
>>
>> http://egn.geodan.nl/egn_esdin_1/services
>> ?typename=GN%3ANamedPlace
>> &maxfeatures=10
>> &SERVICE=WFS
>> &VERSION=1.0.0
>> &REQUEST=GetFeature
>> &SRS=EPSG%3A4326
>> &BBOX=-319.19921875,24.31640625,119.19921875,95.68359375
>>
>> 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?
>>
>> regards,
>> Steven
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>>
>
>





More information about the Dev mailing list