Sorry if this has already been addressed-
on the doc page for GDALRasterBand, method ReadBlock
the documentation states
The following code would efficiently compute a histogram
of eight bit raster data. Note that the final block may be partial
… data beyond
the docs have moved (but apparently Google hasn't figured that out
yet?) GDALRasterBand is now here.
Anyway, as you've figured out, the GDALRasterBand object is the
heart of the matter. You have two ways to read the data, either with
the RasterIO method or the ReadBl
Using GDAL 3.0 in C++, how do I read pixel values from a raster band?
Essentially, I am looking for something akin to GetValue(int X, intY)
Unfortunately, with the documentation pages down,
https://gdal.org/classGDALRasterBand.html, I haven't been able to make much
headway on this.
--
Sent from