Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an ASCII Grid file + .prj file and can visualize this in qGIS. I can colorize it by going to properties and using a Pseudocolor Ramp. However, I want to export this now as a TIFF / Raster. Any ideas on how I can properly export this? Right clicking the layer, there is no "save-as" option :/

I assume I need to somehow apply the color ramp to the ascii grid first, instead of just visualizing the color ramp.


share|improve this question

You can use gdaldem color-relief from the Raster menu to do this:

Raster -> Analysis -> DEM (Terrain models)

Change the Mode to 'Color relief'.

You'll need to make a text file that sets the rules for colouring the (asc) raster according to pixel value. See the section on color relief here: for guidance.

This is still my preferred way of making elevation-coloured GeoTIFFs from DEMs, because of the control it provides (the input raster doesn't have to be a DEM, by the way).

You might also find this to be of interest:

Using gdaldem from the command line makes it very easy to tweak the text file and do re-runs, until you get the result you want.


share|improve this answer

In QGIS 1.9 Master there is now a Save As button. You need to then select 'Rendered Image' as the output mode.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.