Hi,<br><br>It might be due to the WFS layer definition (namespaces and prefixes). Assuming the rest of the configuration is OK, try this:<br><font style="font-family: arial,helvetica,sans-serif;" size="2"><br></font><code><font style="font-family: arial,helvetica,sans-serif;" size="2">var layer_wea = new OpenLayers.Layer.Vector("WEA", {<br>
strategies: [new OpenLayers.Strategy.Fixed()],<br> protocol: new OpenLayers.Protocol.WFS({<br> url: "/geoserver/ows",<br> version: "1.1.0",<br> <b>featureType: "WEA_wgs84_",<br>
featurePrefix: "zgb"</b>,<br><span> featureNS: "<a href="http://www.zgb.de/" target="_blank">http://www.zgb.de</a>",</span><br> srsName: "EPSG:4326"<br> })<br>});<br>
<br></font><br clear="all"></code>Best regards,<br><br>Xurxo Méndez Pérez<br><br><a href="http://www.sonxurxo.com/" target="_blank">http://www.sonxurxo.com</a><br>
<br><br><div class="gmail_quote">2010/12/14 Robert Buckley <span dir="ltr"><<a href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"><div>Hi,<br><br>I would like to change a wms layer in my project to a wfs so that I can add more functionality to the layer such as tables and mouseclicks etc.<br>
Unfortunately when I do this the layer isn´t shown anymore. Firebut gives an exeption saying...<br><br>"<code><span>Could not locate {<a href="http://www.zgb.de%7Dzgb:WEA_wgs84_" target="_blank">http://www.zgb.de}zgb:WEA_wgs84_</a> in catalog.</span></code><code>>"<br>
<br>can anyone explain why this is?<br><br><br></code><code><br>
/**********************/<br>
</code><code>/**This does not work**/<br></code><code>/**********************/</code><br><code><br>var layer_wea = new OpenLayers.Layer.Vector("WEA", {<br> strategies: [new OpenLayers.Strategy.Fixed()],<br> protocol: new OpenLayers.Protocol.WFS({<br>
url: "/geoserver/ows",<br> version: "1.1.0",<br> featureType: "zgb:WEA_wgs84_",<br><span> featureNS: "<a href="http://www.zgb.de" target="_blank">http://www.zgb.de</a>",</span><br>
srsName: "EPSG:4326"<br> })<br>});<br><br><br>/*****************/<br></code><code>/**This
works ok**/<br></code><code>/*****************/<br>
</code><br><code>var layer_wea = new OpenLayers.Layer.WMS(<br> "Windenergieanlage",<br> "/geoserver/ows",<br> {<br> layers: 'zgb:WEA_wgs84_',<br>
group: "Wind",<br> styles: '',<br> srs:
'EPSG:4326',<br> format: 'image/png',<br> tiled: 'no',<br> tilesOrigin : "143.60260815000004,-43.851764249999995",<br> transparent: true<br>
},<br> {<br> 'opacity': 1, 'isBaseLayer': false,
visibility:false<br> }<br> );<br><br><br><br><br><br>yours,<br><br>Robert Buckley<br></code></div>
</div><br></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>