I write AddIn for ArcGIS Pro using ArcGIS Pro sdk.

I have a shapefile on my disk(for example "D:\Data\shapefile.shp").

How can I open this featureclass?

For gdb geodatabase is very simple

using (var gdb = new Geodatabase(path)) 
 var dataset = gdb.OpenDataset(); 

but folder is not geodatabase and this code didn't work.

1 Answer 1

using (var shapefileFolder = new Shapefile(new DirectoryInfo(path))
    var dataset = shapefileFolder.OpenTable(shpfile);
  • It works in ArcGIS Pro SDK 1.4+ Commented Apr 11, 2017 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.