[gdal-dev] Computing statistics from raster dataset without writing aux.xml
Budalen, Mats Bruun
mbu at Teleplan.no
Mon Oct 10 03:11:17 PDT 2022
Hello!
I'm writing a Python program which reads raster data. The program uses the ComputeStatistics() function on the dataset, which automatically attempts to write the result to an .aux.xml next to the raster file. I do not under any circumstance want to try to write to the source directory, so I have set gdal.SetConfigOption('GDAL_PAM_ENABLED','NO') before I open the dataset.
My program will sometimes come across datasets where the SRS is only defined in an aux.xml. Unfortunately, the above ConfigOption prevents the SRS definition from being read from the aux.xml.
Is there any way to compute statistics without creating/changing the aux.xml, while at the same time reading the SRS?
Regards,
Mats Budalen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221010/c9bf9a7a/attachment-0001.htm>
More information about the gdal-dev
mailing list