您的位置:首页 > 其它

调用GP工具

2010-01-13 15:45 239 查看
实例:调用GP工具,DWG转换为SHP,不过好像属性信息没有转换过去。

private void ConvertCAD2Shp(string filePath, string outPutPath)

{

private Geoprocessor gp = null;

gp = new Geoprocessor();

gp.OverwriteOutput = true;

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;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: