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();
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();
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/4329131.html,如需转载请自行联系原作者