0

I have a raster GeoTIFF of western Mediterranean sea and i want to apply the hillshade model with colors as the tutorial explains (Create great looking hillshaded maps in QGIS). After i finished my tests with hillshade and colors i want to save as 1 raster file both of layers ?

enter image description here

Can you help me ?

  • You have two raster files with elevations stored in the pixel values. The DEM is coloured with a single band custom pseudocolor scale. The Hillshade is coloured with a single band custom gray scale. Also you are handling the transparency between them. And you have a great map! But I thnk that you can't have all that properties in a single raster file. – Gabriel De Luca Jan 31 at 15:13
  • The ahmadhmb's answer can be a good apprach. There are others, but all of them involve saving the values of the colours, as paletted uniqe values for the pixels, or as their corresponding intensity of red, green and blue in three bands. You would lose the elevations by doing so. – Gabriel De Luca Jan 31 at 15:26
4

If your purpose is for visualization as a rendered image, then you can use Export Map to Image from File -> Import/Export -> Export Map to Image

enter image description here

Then, use Calculate from Layer and select the hillshade, and check Save world file if you want to keep the georeference of the image:

enter image description here

  • 1
    @Iven Pepa Bear in mind the exported image will not have the same attributes as the original ones, i.e. definition & spatial resolution. This is a rendering of the map view based on specified scale and resolution/definition, for which you'll need to play around a bit to calculate the correct values for your needs. – Gabriel C. Jan 31 at 14:09
  • @GabrielC. Thanks for adding more information about the rendered image. It is really helpful. – ahmadhanb Jan 31 at 14:14
  • Yes thats what i want just, dont need data at this point just for design. Before was trying with merge raster and converting them from float64 to byte but after using merge rasters the colors was different from the layer pseudocolor scale and couldn't finish my work. Thank you. – Iven Pepa Jan 31 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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