ArcGis 创建IWorkspace

时间:2023-03-10 02:41:53
ArcGis 创建IWorkspace
 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, );
            ESRI.ArcGIS.esriSystem.IName name = (ESRI.ArcGIS.esriSystem.IName)workspaceName;
            IWorkspace copyWorkspace = (IWorkspace)name.Open();