[OpenLayers-Users] Problem with a WFS request
Eric Lemoine
eric.lemoine at camptocamp.com
Sun Aug 23 08:02:05 EDT 2009
On Sun, Aug 23, 2009 at 1:23 PM, Eric
Lemoine<eric.lemoine at camptocamp.com> wrote:
> On Sun, Aug 23, 2009 at 11:58 AM, Bart van den Eijnden
> (OSGIS)<bartvde at osgis.nl> wrote:
>> Hi Eric,
>
> Thanks for your response Bart.
>
>>
>> you're right, this does seem a bit strange, so the following config would
>> work because of the auto-detection setting the namespace and guessing
>> featureNS:
>>
>> var p = new OpenLayers.Protocol.WFS({
>> ...
>> featureType: "aster_gdem",
>> featurePrefix: "ms"
>> });
>
> Right, but I guess it would work because MS accepts both "aster_gdem"
> and "ms:aster_gdem" in the "typeName" attribute of the "wfs:Query"
> tag.
>
>
>> I think we would need to raise a bug for this, because specifying featureNS
>> together with featurePrefix should work as well IMHO.
>
> featureType: "aster_gdem",
> featurePrefix: null,
> featureNS: "http://mapserver.gis.umn.edu/mapserver"
>
> should also work.
>
> And for this to work I guess we only need something like the following
> in the WFST format constructor:
>
> if(options.featureNS) {
> this.setNamespace("feature", options.featureNS);
> }
I created a ticket to track this. <http://trac.openlayers.org/ticket/2238>
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 : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list