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>
strategies: [new OpenLayers.Strategy.Fixed(), saveStrategy],<br> protocol: new OpenLayers.Protocol.WFS({<br> url: "<a href="http://localhost:8090/geoserver/wfs" target="_blank">http://localhost:8090/geoserver/wfs</a>",<br>
version: "1.1.0",<br> featureType: "ogm_polygons", <br> featureNS: "<a href="http://opengeomap.org" target="_blank">http://opengeomap.org</a>",<br>
geometryName: "the_geom",<br>
srsName: "EPSG:21781" //Swiss LV03<br> })<br> });<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>