[Qgis-developer] Raster providers

Radim Blazek radim.blazek at gmail.com
Sun Feb 27 11:04:10 EST 2011


On Thu, Feb 24, 2011 at 10:00 AM, Tim Sutton <lists at linfiniti.com> wrote:
> Also I noted that for greyscale images they always seem to load with
> min 0 / max 0 and I have to manually go into properties to load them
> from the layer.

For me it loads with source data type range (tested with UInt16) and
it works the same
way in trunk. QgsRasterLayerProperties are using
mRasterLayer->minimum/maximumValue()
which is by default the source data type (passed to
QgsContrastEnhancement) range.

Maybe 'Contrast enhancement' should be set to 'Stretch to MinMax' by
default for SingleBandGray?

There was little confusion in types of data read for stats calculation
for GDAL, fixed.

Radim


More information about the Qgis-developer mailing list