[OpenLayers-Users] Update error

pericoltoxic grigoregeorge631980 at yahoo.co.uk
Tue Nov 17 07:16:25 EST 2009


I'm looking for a strategy to use OL as an editor to update  a polygon
PostGis layer.
My PostGis table looks like
   gid int4 primary key,
   name varchar2(20),	
   geom polygon

I implement a classic stategy


var saveStrategy = new OpenLayers.Strategy.Save()
					
wfs  = new OpenLayers.Layer.Vector( 'gtest2', {
	   strategies: [
		new OpenLayers.Strategy.BBOX(), saveStrategy
		],
		projection: new OpenLayers.Projection("EPSG:31700"),
............................................

 var save = new OpenLayers.Control.Button({
                title: "Save Changes",
                trigger: function() {
				
                    if(edit.feature) {
					
                        edit.selectControl.unselectAll();
                    }
					//alert("aaaaaaabb");
                    saveStrategy.save();
                },
                displayClass: "olControlSaveFeatures"
            });


 but i have an error:

http://n2.nabble.com/file/n4018212/errror.jpg 
-- 
View this message in context: http://n2.nabble.com/Update-error-tp4018212p4018212.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list