string oshpDir = System.IO.Path.GetDirectoryName(outfile);
string oshpfilename = System.IO.Path.GetFileName(outfile);
IWorkspaceFactory wsFactory = new ShapefileWorkspaceFactoryClass();
IWorkspaceName workspaceName = wsFactory.Create(oshpDir, oshpfilename, null, 0);
ESRI.ArcGIS.esriSystem.IName name = (ESRI.ArcGIS.esriSystem.IName)workspaceName;
IWorkspace copyWorkspace = (IWorkspace)name.Open();
时间: 2024-11-05 17:48:56