引用模型,使用.NET的反射技术,把模型转换为类
直接实例化类,然后用以下几行代码即可!
Geoprocessor gp = new Geoprocessor();
getStreamNet.streamNet pstreamNet = new streamNet();
pstreamNet.tingrid2 = @"E:\ss\tingrid";
pstreamNet.Input_raster_or_constant_value_2 = 1000;
pstreamNet.Output_polyline_features = @"C:\sss.shp";
IGeoProcessorResult pGeoProcessorR = gp.Execute(pstreamNet, null) as IGeoProcessorResult;