首页 > 代码库 > ArcEngine 打开shape文件

ArcEngine 打开shape文件

IWorkspaceFactory wsf = new ShapefileWorkspaceFactory();IWorkspace  pWorkspace = wsf.Open(filePath, 0) ;//filePath为shapefile所在的文件夹IFeatureWorkspace pFeatureWorkspace = pWorkspace ;IFeatureClass pFeatureClass  = pFeatureWorkspace.OpenFeatureClass("parcels");//parcels为shapefile文件名pacels.shp

 

ArcEngine 打开shape文件