[Qgis-developer] Raster providers

Tim Sutton lists at linfiniti.com
Wed Mar 9 02:01:45 EST 2011


Hi

On Wed, Mar 9, 2011 at 8:33 AM, Radim Blazek <radim.blazek at gmail.com> wrote:
> 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()
>

I will update the toolbar to use the same method - it should work for
multiband imagery too. I think I copied the context menu one when I
did the toolbar but maybe I am wrong....I'll update it.


Regards

Tim


> 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
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list