[OpenLayers-Users] Can't get the WFS running
andreia farrér
andreia.farrer at gmail.com
Tue Aug 10 06:37:16 EDT 2010
Hello there,
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.
A few infos first:
- PosgreSQL/PostGIS installed locally; 3 Tables (ogm_points, ogm_lines,
ogm_polygons)
- Geoserver installed locally and WFS-function turned on
- html-page with OL-Code on Apache-Server
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.
Code-snippet for the WFS:
var ogm_polygons = new OpenLayers.Layer.Vector("polygons", {
> strategies: [new OpenLayers.Strategy.Fixed(),
> saveStrategy],
> protocol: new OpenLayers.Protocol.WFS({
> url: "http://localhost:8090/geoserver/wfs",
> version: "1.1.0",
> featureType: "ogm_polygons",
> featureNS: "http://opengeomap.org",
> geometryName: "the_geom",
> srsName: "EPSG:21781" //Swiss LV03
> })
> });
> map.addLayers([ogm_polygons]);
>
I'd be grateful for any advice on what I'm doing wrong; thanks in advance!
Greetings
A. Farrér
--
Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100810/7bfc435c/attachment.html
More information about the Users
mailing list