[OpenLayers-Users] Can't get the WFS running
Adam Ratcliffe
adam at prema.co.nz
Tue Aug 10 06:59:19 EDT 2010
You're probably not proxying your XHR requests so the WFS requests are being blocked by the browser's security model.
You can find out how to configure a proxy here: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost
Cheers
Adam
On 10/08/2010, at 10:37 PM, andreia farrér wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100810/4493377e/attachment.html
More information about the Users
mailing list