[mapserver-users] WFS whith openlayers

Marco Afonso mafonso333 at gmail.com
Wed Feb 19 04:12:31 PST 2014


Hi,

I did run into some issues with OL and WFS 1.1.0 some time ago... I had to
specify the parameter "geometryName", ie.

OpenLayers.Protocol.WFS.fromWMSLayer(layer, {geometryName: "the_geom"})

I hope it helps...




2014-02-19 11:41 GMT+00:00 Dejan Gambin <dejan.gambin at coin.hr>:

> 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
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Regards,
Marco Afonso
http://goo.gl/ZDtQjm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140219/2ab3b94b/attachment.htm>


More information about the MapServer-users mailing list