On Sun, Aug 23, 2009 at 1:23 PM, Eric Lemoine<[email protected]> wrote: > On Sun, Aug 23, 2009 at 11:58 AM, Bart van den Eijnden > (OSGIS)<[email protected]> 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 : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
