//用克里格插值到Raster默认方法 static public void Interpolate2RasterKriging(Geoprocessor gp, string pathIn, string pathOut) { ESRI.ArcGIS.Analyst3DTools.Kriging raster = new ESRI.ArcGIS.Analyst3DTools.Kriging(); raster.in_point_features = pathIn; raster.out_surface_raster = pathOut; raster.semiVariogram_props = "SPHERICAL"; raster.z_field = "Shape"; raster.cell_size = 1; RunTool(gp, raster, null); }
//用克里格插值到Raster选择参数 static public bool Interpolate2RasterKriging(Geoprocessor gp, string pathIn, string pathOut, string semiVariogramProp, string searchRadiusProp) { if (semiVariogramProp == "球模型") { semiVariogramProp = "Spherical"; } if (semiVariogramProp == "圆模型") { semiVariogramProp = "Circular"; } if (semiVariogramProp == "指数模型") { semiVariogramProp = "Exponential"; } if (semiVariogramProp == "高斯模型") { semiVariogramProp = "Gaussian"; } if (semiVariogramProp == "线模型") { semiVariogramProp = "Linear"; } if (semiVariogramProp == "一次线性漂移模型") { semiVariogramProp = "Linear with Linear drift"; } if (semiVariogramProp == "二次线性漂移模型") { semiVariogramProp = "Linear with Linear drift"; } if (searchRadiusProp == "固定式") { searchRadiusProp = "Fixed"; } else { searchRadiusProp = "Variable"; } ESRI.ArcGIS.Analyst3DTools.Kriging raster = new ESRI.ArcGIS.Analyst3DTools.Kriging(); raster.in_point_features = pathIn; raster.out_surface_raster = pathOut; raster.semiVariogram_props = semiVariogramProp; raster.search_radius = searchRadiusProp; raster.z_field = "Shape.Z"; raster.cell_size = 1; return(RunTool(gp, raster, null)); }
//用克里格插值到Raster默认方法 public static void Interpolate2RasterKriging(Geoprocessor gp, string pathIn, string pathOut) { ESRI.ArcGIS.Analyst3DTools.Kriging raster = new ESRI.ArcGIS.Analyst3DTools.Kriging(); raster.in_point_features = pathIn; raster.out_surface_raster = pathOut; raster.semiVariogram_props = "SPHERICAL"; raster.z_field = "Shape"; raster.cell_size = 1; RunTool(gp, raster, null); }
//用克里格插值到Raster选择参数 public static bool Interpolate2RasterKriging(Geoprocessor gp, string pathIn, string pathOut, string semiVariogramProp, string searchRadiusProp) { if (semiVariogramProp == "球模型") { semiVariogramProp = "Spherical"; } if (semiVariogramProp == "圆模型") { semiVariogramProp = "Circular"; } if (semiVariogramProp == "指数模型") { semiVariogramProp = "Exponential"; } if (semiVariogramProp == "高斯模型") { semiVariogramProp = "Gaussian"; } if (semiVariogramProp == "线模型") { semiVariogramProp = "Linear"; } if (semiVariogramProp == "一次线性漂移模型") { semiVariogramProp = "Linear with Linear drift"; } if (semiVariogramProp == "二次线性漂移模型") { semiVariogramProp = "Linear with Linear drift"; } if (searchRadiusProp == "固定式") { searchRadiusProp = "Fixed"; } else { searchRadiusProp = "Variable"; } ESRI.ArcGIS.Analyst3DTools.Kriging raster = new ESRI.ArcGIS.Analyst3DTools.Kriging(); raster.in_point_features = pathIn; raster.out_surface_raster = pathOut; raster.semiVariogram_props = semiVariogramProp; raster.search_radius = searchRadiusProp; raster.z_field = "Shape.Z"; raster.cell_size = 1; return RunTool(gp, raster, null); }