[Qgis-user] Batch conversion of rasters

giannis Nj netsagief at hotmail.com
Fri May 18 02:56:51 PDT 2012


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: rudi at linfiniti.com
To: netsagief at hotmail.com
CC: qgis-user at lists.osgeo.org

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 <netsagief at hotmail.com> 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
Qgis-user at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120518/4caf495c/attachment.html>


More information about the Qgis-user mailing list