[OpenLayers-Users] Show only one feature of the WFS

Tue Topholm tt at sugee.dk
Fri Oct 4 11:08:05 PDT 2013


Did you have a look at filters


--

Med venlig hilsen / Kind regards

Tue Topholm
Sugee
Tlf: +45 32 13 32 32
W: http://www.sugee.dk


2013/10/4 Alextave <andrea.alri90 at gmail.com>

> I realize that I expressed myself so bad, I apologize.
> My problem is this: I have to select one feature of a WFS and show this
> feature on a map, I don't want to show the other features that belong to
> the
> WFS.
>
> I have this layer that contains a WFS:
>    var Parametri_WFSStradeB=new Object();
>    Parametri_WFSStradeB.url="http://localhost:8080/services/WFSbabDB";
>    Parametri_WFSStradeB.featureType="StradaB";
>    Parametri_WFSStradeB.featureNS="http://www.deegree.org/app";
>    Parametri_WFSStradeB.featurePrefix="app";
>    Parametri_WFSStradeB.geometryName="Road";
>    Parametri_WFSStradeB.outputFormat="GML2";
>    Parametri_WFSStradeB.visibility=false;
>    var WFSStradeB=new OpenLayers.Protocol.WFS.v1_1_0(Parametri_WFSStradeB);
>
>    var LayerWFSStradeB=new OpenLayers.Layer.Vector("WFSSB", {
>      strategies: [new OpenLayers.Strategy.BBOX()],
>      protocol: WFSStradeB
>    });
>
> I think I have to do this selection before the
>      map.addLayer(LayerWFSStradeB);
>
> because the addLayer() function show all the data on the map. I use
> OpenLayers.Control.GetFeature in another  moment but now I think it is not
> useful.
> I know the exixtence of ProxyHost that can make me go on the server side
> but
> I can't managed to configure it correctly.
> In addition to the proxy, there are other similar solutions?
>
> Thanks for the helo
> Andrea
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Show-only-one-feature-of-the-WFS-tp5081567p5081877.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131004/36f876be/attachment.html>


More information about the Users mailing list