Thanks for the answer. 

How can I apply the each saved style to the new .tiff images later? I want to 
apply the relative colours permanently to my new raster files, not only for 
displaying them in qgis canvas. 




Date: Thu, 17 May 2012 15:16:55 +0200
Subject: Re: [Qgis-user] Batch conversion of rasters
From: [email protected]
To: [email protected]
CC: [email protected]

If I understand your problem correctly ...
The classification of a raster in the display is not related to the file 
itself, but to the layer as you see it in the display. Even if you load the 
original .asc file as a new layer, it won't have the correct colors. It's not a 
problem of image format conversion.

So the only way I can think of to solve your problem is to save the style, then 
apply it to the new .tiff image later. Maybe save the style to be the same as 
the file name (sans extension) of the image you're converting, so that you know 
which image to apply it to (if they're not all the same). I'm not sure how to 
do this automatically though, so if you have 500 images you're going to hate me 
...


On 17 May 2012 10:52, giannis Nj <[email protected]> wrote:

I want to convert a directory with .asc files to .tiffs, but I need the output 
files to have the same colour analysis, as when they are already loaded in qgis 
display. I try Raster->Conversion->Translate (Convert format) but it gives each 
file with different colours. Is there any other way to make it? Maybe a batch 
convert somehow after the files are loaded on screen?


_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user


                                          
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to