Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Updated Wiki: SaveCS

$
0
0

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

using DotSpatial.Data;


        privatevoid 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);
        }

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>