InterpolationKrigingParameter,Interpolator.Interpolate 在使用克吕金插值时,插值后的结果DatasetGrid中,得到的行和列始终都是4行6列。请问如何设置插值后的栅格数量?或者以公里为单位1公里一个栅格,如:200*200的网格。下边我读取每一个栅格值的方式是否正确?
//下边是我设置的参数,坐标2000经纬度坐标,里边涉及的参数都试过了“Resolution”设置为1,DatasetGrid行和列都是1,设置0.001行和列是4*6(我的数据是这个),0.0001设置后行和列还是4*6。
SuperMap.Analyst.SpatialAnalyst.InterpolationKrigingParameter interpolationMethodKrigingParam =
new SuperMap.Analyst.SpatialAnalyst.InterpolationKrigingParameter(InterpolationAlgorithmType.SimpleKriging);
interpolationMethodKrigingParam.Resolution = 0.001;
interpolationMethodKrigingParam.SearchRadius = 12;
interpolationMethodKrigingParam.ExpectedCount = 285;
interpolationMethodKrigingParam.SearchMode = SearchMode.KdTreeFixedCount;
interpolationMethodKrigingParam.Bounds = recordset.Bounds;
interpolationMethodKrigingParam.VariogramMode = VariogramMode.Spherical;
DatasetGrid datasetGrid = Interpolator.Interpolate(interpolationMethodKrigingParam, recordset, "BDZ", 1, m_datasource, lineName, PixelFormat.Single);
//以下是读取的栅格每个点值,
for (Int32 i = 0; i < datasetGrid.RowBlockCount; i++) {
for (Int32 j = 0; j < datasetGrid.ColumnBlockCount; j++) {
double dabcd = datasetGrid.GetValue(j, i);
num[i, j] = dabcd;
}
}