Save current layer

Jul 4, 2011 at 6:39 PM
Edited Jul 27, 2011 at 6:59 PM

I review all DSP stuff but did not find how to save changes on specific map layer (when move/delete line vertex for example) directly to shp and dbf  files with same names?

Thanks for help, regards, Vojko


Jul 27, 2011 at 7:08 PM
Edited Nov 20, 2011 at 1:35 PM


I found the code exmaple to add new point and then "saveAS" but can not find the way to save changes to the current layer:  

            //creates a new coordinate
            Coordinate c = new Coordinate(2.4, 7.9);
            //passes the coordinate to a new point
            DotSpatial.Topology.Point p = new DotSpatial.Topology.Point(c);
            IFeature currentFeature = fs.AddFeature(p);
            fs.SaveAs(@"C:\Temp\test.shp", true);                >>> is there a way to save changes to the current layer ?

Thanks for help, Vojko