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, null0);
            ESRI.ArcGIS.esriSystem.IName name = (ESRI.ArcGIS.esriSystem.IName)workspaceName;
            IWorkspace copyWorkspace = (IWorkspace)name.Open();
posted @ 2015-03-11 10:23  94cool  阅读(406)  评论(0)    收藏  举报