4

I have been trying to create a hillshade using DEM data, however, regardless of the scale and z values I use the output is all black.

I accessed the DEM data from a government source and clipped it to the area I need (shown below).

enter image description here

Then I open the DEM (Terrain models) dialog and select this raster layer, choose an output file and fill in values for scale and z. Based on this other thread I used the equations to calculate for my area:

s=111320*cos(latitude*pi/180) z=1/(111320*cos(latitude*pi/180))

This results in a scale of 111310 and a z of 8.98. To be clear, I've tried these numbers, I've tried just inputting the scale value and leaving z at 1, I've tried a whole host of values from threads I've come across, however, no matter the values, my result is always all black (shown below).

enter image description here

What am I doing incorrectly?

I am using QGIS 2.8.1 and the link to the data source I am using is: http://ftp2.cits.rncan.gc.ca/pub/geott/ess_pubs/210/210231/of_3678.zip

  • 1
    Set both the scale and the vertical exaggaration ("z-factor") to 1. The equation you found for calculating the scale only applies if you're working with geographical coordinates (i.e. degrees longitude and latitude) that need to be converted to metres, but the data you have is in a projected coordinate system (NAD83 / UTM zone 17N) that already uses metres. – Jake Mar 19 '15 at 17:07
  • possible duplicate of Scale and Z factor have no effect on hillshade analysis in QGIS – Jake Mar 19 '15 at 17:07
  • 1
    Thank you Jake, leaving both values as 1 did indeed work. Much appreciated mate! – user35127 Mar 19 '15 at 18:10
4

Set both the scale and the vertical exaggaration ("z-factor") to 1. The equation you found for calculating the scale only applies if you're working with geographical coordinates (i.e. degrees longitude and latitude) that need to be converted to metres, but the data you have is in a projected coordinate system (NAD83 / UTM zone 17N) that already uses metres.

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.