thank you Eric for your answer, but with a wfs protocol, i had another error : this.writers .. (Erreur d'exécution Microsoft JScript: 'this.writers[...]' a la valeur Null ou n'est pas un objet.)
so, now, my script is:
wfs = new OpenLayers.Layer.Vector("WFS",
{
strategies: [
new OpenLayers.Strategy.BBOX()
],
protocol: new OpenLayers.Protocol.WFS({
url: "http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfileOracleWFS.map&",
maxFeatures: 200,
geometryName: "GEOMETRY1",
srsName: "epsg:27563",
featureType: "EAU_TRONCON",
featureNS: "http://localhost:81/cgi-bin",
format: new OpenLayers.Format.GML({
layerName: "EAU_TRONCON",
geometryName: "GEOMETRY1"
})
})
},
{
extractAttributes:true,
isBaseLayer:false,
displayInLayerSwitcher: true
});
{
strategies: [
new OpenLayers.Strategy.BBOX()
],
protocol: new OpenLayers.Protocol.WFS({
url: "http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfileOracleWFS.map&",
maxFeatures: 200,
geometryName: "GEOMETRY1",
srsName: "epsg:27563",
featureType: "EAU_TRONCON",
featureNS: "http://localhost:81/cgi-bin",
format: new OpenLayers.Format.GML({
layerName: "EAU_TRONCON",
geometryName: "GEOMETRY1"
})
})
},
{
extractAttributes:true,
isBaseLayer:false,
displayInLayerSwitcher: true
});
i don't understand what is the featureNS parameter and how to use a wfs protocol ?
thanks,
Youness ELMEDRAOUI
Les informations figurant sur cet e-mail ont un caractère strictement confidentiel et sont exclusivement adressées au destinataire mentionné ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est strictement interdit si vous n'en êtes pas le destinataire.Dans ce cas, veuillez nous en avertir immédiatement par la même voie et détruire l'original. Merci Youness ELMEDRAOUI
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
