<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You're probably not proxying your XHR requests so the WFS requests are being blocked by the browser's security model.<div><br></div><div>You can find out how to configure a proxy here:&nbsp;<a href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost">http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost</a></div><div><br></div><div>Cheers</div><div>Adam<br><div><br><div><div>On 10/08/2010, at 10:37 PM, andreia farrér wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello there,<br>I'm trying to implement a Web Feature Service in my Map and somehow it seems that I'm not able to handle such an "easy" task.<br>A few infos first: <br>- PosgreSQL/PostGIS installed locally; 3 Tables (ogm_points, ogm_lines, ogm_polygons)<br>

- Geoserver installed locally and WFS-function turned on<br>- html-page with OL-Code on Apache-Server<br><br>Problem: The features don't show in my mappanel. Although I'm able to read the features with e.g Gaia without any problems (and QGIS as a WMS), It seems that i missed something. I tried to adapt some examples, but not a single one worked.<br>

<br>Code-snippet for the WFS:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">var ogm_polygons = new OpenLayers.Layer.Vector("polygons", {<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.Fixed(), saveStrategy],<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: "<a href="http://localhost:8090/geoserver/wfs" target="_blank">http://localhost:8090/geoserver/wfs</a>",<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: "1.1.0",<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureType: "ogm_polygons", <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureNS: "<a href="http://opengeomap.org/" target="_blank">http://opengeomap.org</a>",<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; geometryName: "the_geom",<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: "EPSG:21781" //Swiss LV03<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; })<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; });<br>map.addLayers([ogm_polygons]);<br clear="all"></blockquote><br>I'd be grateful for any advice on what I'm doing wrong; thanks in advance!<br>

Greetings<br>A. Farrér<br><br>-- <br>Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93<br>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>http://openlayers.org/mailman/listinfo/users<br></blockquote></div><br></div></div></body></html>