Sample code that demonstrates how to open an existing shapefile and save that shapefile with a new file name.

using DotSpatial.Data;


        private void button1_Click(object sender, EventArgs e)
        {
            //Declare a new feature set
            IFeatureSet fs = FeatureSet.Open(@"C:\[Your File Path]\Municipalities.shp");

            //Saves the open shapefile
            fs.SaveAs(@"C:\[Your File Path]\Municipalities_Test.shp", true);
        }

Last edited May 20, 2015 at 4:33 PM by mbayles, version 5