[gdal-dev] how to programatically clear PAM information such as stats and histogram

Etienne Tourigny etourigny.dev at gmail.com
Mon Jun 18 08:42:37 PDT 2012


Hi devs,

I would like to know if there is a way with existing C api to clear
PAM information related to statistics and histogram.

Currently, if a raster file is modified outside of gdal, the .aux.xml
file may be invalid.

The approaches I can see are

1) Removing the .aux.xml file - but it may contain other valid
information such as CRS
2) Removing the relevant metadata items (for stats) and removing the
<Histograms> section in the .aux.xml file

thanks,
Etienne


More information about the gdal-dev mailing list