You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sindizzy edited this page Dec 30, 2020
·
4 revisions
This code demonstrates how to open an existing shapefile as a new feature set using the System.Spatial.Desktop library and then buffer the feature set.
usingSystem.Spatial.Data;privatevoidbutton1_Click(objectsender,EventArgse){//Declares a new feature set and passes in the file path for the standard //shapefile that will be openedIFeatureSetfs=FeatureSet.Open(@"C:\[Your File Path](Your-File-Path)\Municipalities.shp");//Buffers the feature set "fs"IFeatureSetbs=fs.Buffer(10,true);//Saves the buffered feature set as a new filebs.SaveAs(@"C:\[Your File Path](Your-File-Path)\Municipalities_Buffer.shp",true);}