Hi Pedro,

If you look at the XML returned, you'll see this namespace definition: xmlns:ms="http://mapserver.gis.umn.edu/mapserv";, and more below inside the <gml:featureMember> tag there are tags that use the 'ms' prefix. This has to be set in your wfs protocol definition:

  featurePrefix: "ms",  // default is 'feature'
featureNS: "http://mapserver.gis.umn.edu/mapserv";, // default is 'http://localhost/' if I remember correctly

You could also set those on the server side to make mapserver return the default values for openlayers. It's in the MAP WEB METADATA object, add:

           "wfs_namespace_prefix" "feature"
           "wfs_namespace_uri" "http://localhost/";

HTH,

Alexandre


On 13-07-23 11:09 AM, Pedro Costa wrote:
Hi guys,

I have on wfs from mapserver. I have made an GetCapabilities, tried in qgis also and works fine. My data in postgis are in epsg:27493 and i reproject for 900913 with mapserver. I see bounding box with GetFeature request and also its fine. My problem is that i can't see nothing from my layer in openlayers client...In [2] are my openlayers code.
If I go to response tab in firebug its all rigth also [see ss1].
But if i execute in javascript console 'my_layer_name.features.length' i get 0 features.
I don't know the problem. Can anybody help me with that?

Thanks

Pedro

[ss1] http://img855.imageshack.us/img855/8236/r4vh.png

[2] http://pastebin.com/ZUaHbq0h


_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to