[Qgis-developer] Raster providers
Radim Blazek
radim.blazek at gmail.com
Wed Mar 9 01:33:03 EST 2011
On Wed, Mar 9, 2011 at 12:32 AM, Borys Jurgiel <lists at borysjurgiel.pl> wrote:
> 1. Histogram stretch doesn't work with OTFR enabled (both tools: the one in
> layer context menu and the one in toolbar).
Fixed.
> By the way, why there are the two
> tools for stretching? The one in toolbar works with grayscale rasters only,
> while the one in the layer context menu seems to work always.
No idea. Each one is calling different method :
toolbar -> QgisApp::localHistogramStretch()
c. menu -> QgsLegend::legendLayerStretchUsingCurrentExtent()
It should use just one method and it should be moved to QgsRasterLayer.
But which one? QgsLegend::legendLayerStretchUsingCurrentExtent() may
also change drawingStyle and there is a comment in the code:
// Note: Do we really want to do these next clauses? The user will get
a surprise when the
// drawing style they are using suddenly changes....! TS
Radim
More information about the Qgis-developer
mailing list