I want to create very many ERDAS .img files using GDAL under C++. I don't want to have to process them all in ArcMap to create statistics for them (mainly because ArcMap fumbles when calculating statistics for very many input images in batch mode). I want to create the .img files complete with statistics calculated for each. I see python utilities for this, but nothing under the C++ API. Does anyone have a solution?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
GDALRasterBand::GetStatistics() should work for you after you create your datasets and bands, see: http://gdal.org/classGDALRasterBand.html#a48883c1dae195b21b37b51b10e910f9b if you are translating data, gdal_translate -stats forces calculation of stats. |
|||||||||
|