“System.Runtime.InteropServices.COMException”类型的未经处理的异常在 ESRI.ArcGIS.Geoprocessor.dll 中发生
一个GP工具的问题请教各位
“System.Runtime.InteropServices.COMException”类型的未经处理的异常在 ESRI.ArcGIS.Geoprocessor.dll 中发生
代码如下:
Geoprocessor gp = new Geoprocessor();
CreateFishnet fishnet = new CreateFishnet();
fishnet.out_feature_class = @"F:\临时文件\规划工具\data\fishnetDemo.shp";
fishnet.number_columns = 10;
fishnet.number_rows = 10;
fishnet.template = @"F:\临时文件\规划工具\data\ghsjp.shp";
fishnet.geometry_type = "POLYLINE";
gp.Execute(fishnet, null);
“System.Runtime.InteropServices.COMException”类型的未经处理的异常在 ESRI.ArcGIS.Geoprocessor.dll 中发生
代码如下:
Geoprocessor gp = new Geoprocessor();
CreateFishnet fishnet = new CreateFishnet();
fishnet.out_feature_class = @"F:\临时文件\规划工具\data\fishnetDemo.shp";
fishnet.number_columns = 10;
fishnet.number_rows = 10;
fishnet.template = @"F:\临时文件\规划工具\data\ghsjp.shp";
fishnet.geometry_type = "POLYLINE";
gp.Execute(fishnet, null);
4 个回复
铭净止水
赞同来自:
Geoprocessor gp = new Geoprocessor();
CreateFishnet fishnet = new CreateFishnet();
fishnet.out_feature_class = @"F:\临时文件\规划工具\data\fishnetDemo.shp";
IPoint point=new PointClass();
point.X=117.0831856110001;
point.Y=36.61260221400005;
fishnet.origin_coord = point;
point=new PointClass();
point.X=117.0831856110001;
point.Y=46.61260221400005;
fishnet.y_axis_coord = point;
fishnet.number_columns = 10;
fishnet.number_rows = 10;
fishnet.cell_height = 0;
fishnet.cell_width = 0;
//fishnet.template = @"F:\临时文件\规划工具\data\ghsjp.shp";
fishnet.geometry_type = "POLYLINE";
gp.Execute(fishnet, null);
朱新颖
赞同来自:
胖胖胖胖我要长胖
赞同来自:
wsw771006
赞同来自:
要回复问题请先登录或注册
发起人
相关问题
问题状态
—— 扫技术支持中心微信服务号!
—— 让GIS知乎问答随时随地!