[OpenLayers-Users] WFS and PostGIS
Jerome Freyre
jerome.freyre at hispeed.ch
Mon Aug 17 01:46:20 EDT 2009
Hi Juan,
Here is how I use WFS-T on my apps. I hope it will be useful.
======
var saveStrategy = new OpenLayers.Strategy.Save({
callback: function() {
alert('feature saved');
}
});
wfs = new OpenLayers.Layer.Vector( 'lumin', {
strategies: [
new OpenLayers.Strategy.BBOX(),
saveStrategy
],
projection: new OpenLayers.Projection("EPSG:21781"),
protocol: new OpenLayers.Protocol.WFS({
version: '1.1.0',
srsName: 'EPSG:21781',
url:
'http://localhost:8080/geoserver/wfs?strict=true',
featureNS : 'http://www.openplans.org/topp',
featureType: 'lumin',
geometryName: 'the_geom',
extractAttribute: true
}),
styleMap: styleMap
});
====
--
View this message in context: http://n2.nabble.com/WFS-and-PostGIS-tp3455383p3456708.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list