We've got raster files which we add to ArcGIS Pro using GDAL. This creates for each raster a vrt where also the statistcs is visible (if present). If the statistics is not per default available, it prompts whether it should calculate it or not. This is also done with GDAL and works fine as long as the raster is added only once.
However, if the raster is first added without statistics and then added to the same project with calculated statistics, both layers contain no statistics and are symbolised accordingly. eventhough the second vrt replaces the first vrt, meaning that only the vrt with the statistics is available.
We assume that ArcGIS Pro somehow caches the metadata from the (first) vrt and doesn't bother to read the new, correct metadata from the replacing vrt. We need to be able to force ArcGIS Pro to read in the new vrt with the correct metadata and refresh the data referencing to this data source. a manual new setting of the data source did not work (as expected). it works partially if the new source has a new name, but if the new source has the same name, it doesn't reread it. and even if it reads the new vrt, it doesnt read the new statistics and thus doesnt change the appearance.
my options >> Map and Scene >> Layer Data Sources >> When data source are deleted: do no remove layer // when data sources are renamed: update layers in open maps
how can it be achieved, that the changed statistics are applied?