[OpenLayers-Users] strategy BBox

Eric Lemoine eric.lemoine at camptocamp.com
Mon Aug 17 12:21:18 EDT 2009


On Monday, August 17, 2009, YOUNESS ELMEDRAOUI
<youness.elmedraoui at somei.fr> wrote:
> Hi,
>
> plz, how can i use BBox strategy with a wfs layer défined in a mapfile?   i tested this script but it does not work:   wfs = new OpenLayers.Layer.Vector("WFS",
>      {
>           strategies: [
>                new OpenLayers.Strategy.BBOX()
>           ],
>           protocol: new OpenLayers.Protocol.HTTP({
>                url: " http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfileOracleWFS.map &",
>                params: {
>                     format: "WFS",
>                     service: "WFS",
>                     request: "GetFeature",
>                     srs: "EPSG:27563",
>                     VERSION : "1.0.0",
>                     typename : 'EAU_TRONCON'
>                },
>                format: new OpenLayers.Format.GML()
>           })
>      },
>      {
>           extractAttributes:true,
>           isBaseLayer:false,
>           displayInLayerSwitcher: true
>      });   can any one help me plz?


have you considered using OpenLayers.Protocol.WFS? This may prove easier.

Cheers,


>
> when i tried to zoom, i had a message error on "node.getElementsByTagNameNS" statement.
>
> Best regards,
> 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
>

-- 
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