标签:
IWorkspaceFactory wsf = new ShapefileWorkspaceFactory(); IWorkspace pWorkspace = wsf.Open(filePath, 0) ;//filePath为shapefile所在的文件夹 IFeatureWorkspace pFeatureWorkspace = pWorkspace ; IFeatureClass pFeatureClass = pFeatureWorkspace.OpenFeatureClass("parcels");//parcels为shapefile文件名pacels.shp
标签:
原文地址:http://www.cnblogs.com/bluemaplestudio/p/4214630.html