[mapserver-users] WFS whith openlayers

Dejan Gambin dejan.gambin at coin.hr
Wed Feb 19 03:41:18 PST 2014


I don't know if this can help you...

In my getfeatureinfo code I am using getfeatureinfo control like this:

this.cnt_GetFeatureInfo=new OpenLayers.Control.GetFeature({
                protocol: OpenLayers.Protocol.WFS({
                    version: "1.0.0",
                    url:  wfs_url + "SERVICE=WFS&srsName=EPSG:900913",
                    srsName:"EPSG:900913",
                    featureNS: wfs_ns,
                    geometryName: "msGeometry",
                    featurePrefix: "ms"
                }),
		...
});

I know I had to put srsName in url also, but don't remember why and if this is needed with newer MapServer versions

On 19. vel. 2014., at 10:58, jongarrido wrote:

> Hello,
> I'm trying to create an openalyers map with a wfs layer (served from
> mapaserver).
> 
> I'm connecting with qgis successfully but not from the openlyares map....
> 
> Can someone  give a valid wfs layer construcion code for my layer?
> 
> You have hera a valid getfeatureinfo request:
> 
> http://88.198.57.99/cgi-bin/mapserv?map=/home/mapserver/mapfiles/eventosLineaWFS.map&service=wfs&request=getfeature&version=1.0.0&typename=Distritos
> 
> Thanks in advance
> 
> 
> 
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-whith-openlayers-tp5104651.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list