[Qgis-user] saving stretch parameters in QGIS

Ramon Andiñach custard at westnet.com.au
Mon Dec 16 13:43:09 PST 2013


On 16/12/2013, at 23:25 , Chris Padwick wrote:

> Hi,
>  
> OS: Windows 7
> QGIS Version: 2.0.1-Dufour
> Standalone installer
>  
> I don’t know how to save the stretch parameters for a raster.  Here is what I do.  I have a 4 band raster in the band order blue, green, red nir.  I load the raster and bring up the properties dialog.  It loads in band order 1,2,3.  I change the band order to load band 3 as the red band, band 2 and the green band, and band 1 as the blue band.  To the right I see a dialog that says “Cumulative count cut”, “min max”, and “Mean +/- standard deviation”.  I can adjust the upper and lower cut values and click the “Load” button followed by the “Apply” button and the raster changes on the screen.  This is all working.
>  
> Now here is what I can’t understand.  I click “Save Style” and select a file name.  This saves ok.  I then select “Save as Default” and this looks like it works.  I exit the dialog and load up a new 4 band raster.  The raster loads, but none of my style preferences are respected.  I open the properties on the new raster.  The band order is back to 1,2,3 and all my stretch parameters are lost.  I click “Load style” and load my previously saved style and nothing happens.  Is there any way to do this?  Can someone describe how to save these settings and get them to be applied automatically when a new raster is loaded?
>  
> Is this a bug or is this the intended functionality?  My expectation when I click save in any dialog box is that all my parameters are saved from the dialog, not parts of them.  I know that from QGIS 1.7.4 there were various save buttons on that properties dialog.  I still couldn’t save the stretch parameters but I could save the band order.  If this is intended behavior can I file a feature request?  This is an awesome tool, and I’d like to help improve it.

I can confirm what you're seeing, and it's at the very least not expected behaviour, so a bug report is reasonable.

-ramon.


More information about the Qgis-user mailing list