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.

using (var shapefileFolder = new Shapefile(new DirectoryInfo(path))
    var dataset = shapefileFolder.OpenTable(shpfile);
| improve this answer | |
  • It works in ArcGIS Pro SDK 1.4+ – Pavel Butusov Apr 11 '17 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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