On Sun, Aug 23, 2009 at 11:58 AM, Bart van den Eijnden (OSGIS)<bart...@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); } 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.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users