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: ** Comment from web user: mogikanin **
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: ** Comment from web user: mogikanin **
Changed DotSpatial.Data.dll and DotSpatial.Data.Rasters.GdalExtension.dll