当前位置:   article > 正文

dwg转成shape格式_python dxf转为shp格式

python dxf转为shp格式

 说明:该代码是调用GP工具实现

filePath:输入路径,dwg文件路径,比如:C:/Documents and Settings/Administrator/桌面/dwg/aa.dwg

outPutPath:输出路径,shape文件路径,比如:C:/Documents and Settings/Administrator/桌面/shp/bb.shp

 

private void ConvertCAD2Shp(string filePath, string outPutPath)
        {
            IGPProcess tools = null;
            cadtoshpTools = new CADtoFeatureClass();
            cadtoshpTools.input_CAD_file = filePath;
            cadtoshpTools.output_feature_class = outPutPath;
            tools = cadtoshpTools;
            ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult result = gp.Execute(tools, null) as ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult;
        }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/341116
推荐阅读
相关标签
  

闽ICP备14008679号