[OpenLayers-Dev] Generating a valid WFS object
Ulrik Balslev
uba at globeface.com
Fri Jul 9 16:50:20 EDT 2010
Hi dev list,
Using OpenLayers & Geoserver for WMS seems straight forward and works OK,
but I cannot get it to work for WFS. I can't seem to create a valid
OpenLayers layer object.
A simple HTML page like this, gives a layer ('wfslayer'), that has no
features (no data).
Any hints? - Is it a security issue?
regs.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WFS test!</title>
<script src="./OpenLayers.js" type="text/javascript"></script>
<script>
var wfslayer;
OpenLayers.ProxyHost = "proxy.cgi?url=";
function init() {
wfslayer = new OpenLayers.Layer.Vector("WFS", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: "http://ubuntu:8080/geoserver/wfs",
featureType: "tiger:poi",
featureNS: "http://postgis.org",
srsName: "EPSG:32632",
version: "1.1.0"
})
});
}
</script>
</head>
<body onload="init()">
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100709/7eb31d5a/attachment.html
More information about the Dev
mailing list