Hi Alexandre,<br><br>Thanks for your help. Indeed it was a problem with the namespace. A dummy mistake :)<br><br>Kind regards,<br><br>Hugo Martins<br><br><div class="gmail_quote">On Tue, Jun 30, 2009 at 1:00 PM, Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Hugo,<br>
<br>
 This looks like a feature namespace problem.  See the Format.XML readNode function, put a break point at line :<br>
<br>
var group = this.readers[this.namespaceAlias[node.namespaceURI]];<br>
<br>
 This might be the problem,<br>
<br>
Alexandre<br>
<br>
Hugo wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hello all,<br>
<br>
I&#39;m having troubles to implement a vector layer with WFS protocol. From firebug i can see that the attributes from the layer are extracted, however no vector feature is displayed in the map.<br>
DO you have any suggestions??? My code is as follows:<br>
<br>
var saveStrategy = new OpenLayers.Strategy.Save();<br>
        var wfs2 = new OpenLayers.Layer.Vector(<br>
            &quot;ExplorWFS2&quot;,<br>
            {<br>
                strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],<br>
                projection: wgs,<br>
                protocol: new OpenLayers.Protocol.WFS({<br>
                    version: &quot;1.1.0&quot;,<br>
                    srsName: &quot;EPSG:4326&quot;,<br>
                    url: &quot;<a href="http://isegi.dyndns.org:8080/geoserver/wfs" target="_blank">http://isegi.dyndns.org:8080/geoserver/wfs</a>?&quot;,<br>
                    featureNS :  &quot;<a href="http://isegi.dyndns.org:8080/sigla" target="_blank">http://isegi.dyndns.org:8080/sigla</a>&quot;,<br>
                    featureType: &quot;explor&quot;,<br>
                    geometryName: &quot;the_geom&quot;,<br></div>
                    schema: &quot;<a href="http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor" target="_blank">http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor</a> &lt;<a href="http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor" target="_blank">http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor</a>&gt;&quot;,<div class="im">
<br>
                    format: new OpenLayers.Format.WFST.v1_1_0({<br>
                        featureType: &#39;explor&#39;,<br>
                        featureNS: &quot;<a href="http://isegi.dyndns.org:8080/sigla" target="_blank">http://isegi.dyndns.org:8080/sigla</a>&quot;,<br>
                        featurePrefix: &#39;sigla&#39;,<br>
                        geometryName: &#39;the_geom&#39;<br>
                    })<br>
                })               }<br>
        );<br>
<br>
I have tried these code with and without the format option.<br>
<br>
If i simply use the following code, everything goes perfect and vector features are displayed in the map:<br>
<br>
var wfs = new OpenLayers.Layer.WFS(<br>
            &quot;ExplorWFS&quot;,<br>
            &quot;<a href="http://isegi.dyndns.org:8080/geoserver/wfs" target="_blank">http://isegi.dyndns.org:8080/geoserver/wfs</a>?&quot;,<br>
            {typename: &#39;sigla:explor&#39;},<br>
            {<br>
                featureVersion: &quot;1.0.0&quot;,<br>
                typename: &#39;explor&#39;,<br>
                featureNS: &#39;&quot;<a href="http://isegi.dyndns.org:8080/sigla" target="_blank">http://isegi.dyndns.org:8080/sigla</a>&#39;,<br>
                geometryName: &quot;the_geom&quot;,<br>
                projection: wgs,<br>
                extractAttributes: true,<br></div>
                schema: &quot;<a href="http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor" target="_blank">http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor</a> &lt;<a href="http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor" target="_blank">http://isegi.dyndns.org:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sigla:explor</a>&gt;&quot;<div class="im">
<br>
            }<br>
        );<br>
<br>
Thanks in advance.<br>
Kind regards,<br>
<br>
Hugo Martins<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</blockquote></div><br>