current situation:
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 or if each added raster gets a vrt with a unique name.
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.
if the data source is unique, it works as expected until one tries to change the data source. this doesn't seem to have much effect - neither the visualisation nor the data range in the contents nor the statistics in the layer properties are changed.
thus the idea:
Introduce a refresh method for rasters, which refreshes also metadata such as statistics from data source