If you open a raster in memory and change the values of it, the min/max properties don't change (e.g. if you open a raster DEM with elevation values, then set all the values in the raster to zero, the read-only Max and Min properties are still set to their previous values which messes up the symbology.
I propose a new method on a raster .UpdateStatistics() that would simply recalcluate the min and max values and expose the new values through those readonly properties.
Comments: Resolved with changeset 71296: Correct update of statistics for in memory rasters (#24000)
I propose a new method on a raster .UpdateStatistics() that would simply recalcluate the min and max values and expose the new values through those readonly properties.
Comments: Resolved with changeset 71296: Correct update of statistics for in memory rasters (#24000)