你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
朱新颖
赞同来自:
public void IdentifyPixelValue(IRaster raster, double xMap, double yMap) { IRaster2 raster2 = (IRaster2)raster; //Get the column and row by giving x,y coordinates in a map space. int col = raster2.ToPixelColumn(xMap); int row = raster2.ToPixelRow(yMap); //Get the value at a given band. double pixelValue = raster2.GetPixelValue(0, col, row); }
要回复问题请先登录或注册
1 个回复
朱新颖
赞同来自:
1,可以使用IRaster2.ToPixelColumn(xMap)以及IRaster2.ToPixelRow(yMap)方法将地理坐标转为像元的行列号;
2,使用IRaster2.GetPixelValue(0, col, row);获取像素值。
要回复问题请先登录或注册