Hillshading with QGIS

Every day being a QGIS user and developer brings a new surprise. Even more so since the python language bindings were introduced to allow people to write plugins easily. Today Andreas Plesch popped a note to the dev list saying he had created a plugin for hill shading. I often like to use a hill shaded relief map as a backdrop to provide context for map data. Now it is easy to do in QGIS. Here is a little example:

QGIS hillshading plugin

The plugin is available from the python plugin manager…here’s looking forward making lots of beautiful relief maps!

pixelstats trackingpixel

Comments

  1. palcel says:

    Sorry, but I´m an amateur cartographer, and I know Qgis feom some days ago, but i´m really interested in open source Gis like this. I tried, but I can´t find this hillshade plugin into the program; I really don´t know where it´s the python plugin manager, I found only the Pyton console into Qgis. Can you explain me this, please?

    • Tim Sutton says:

      Do

      Plugins -> Fetch python plugins

      On the ‘Repositories’ tab, click the ‘Add 3rd party repositories’ button and on the ‘Options’ tab check the option ‘Show all plugins except those marked as experimental’. Lastly in the ‘Plugins’ tab, type ‘shade’ into the filter box and check the ‘DEM relief shader’ option, then click the ‘install’ button.

      Close the python plugin tool and you should now see the hillshade plugin listed in the plugins menu. If it is still not listed, open ‘Plugins -> manage plugins’ and check that it is enabled there.

      Have fun!

      Tim

  2. chaser says:

    Hi

    I followed the steps above – thanks.

    When I attempted to create a shaded relief, using the default settings, I got the following error:

    Traceback (most recent call last):
    File “C:/Documents and Settings/me/.qgis/python/plugins\shadedrelief\ShadedReliefDialog.py”, line 83, in accept
    myEngine.run()
    File “C:/Documents and Settings/me/.qgis/python/plugins\shadedrelief\ShadedReliefEngine.py”, line 81, in run
    sta=numpy.dstack((-gr[1]*dy,gr[0]*dx,numpy.ones(gr[0].shape)*dx*dy))
    File “C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\numpy\lib\shape_base.py”, line 304, in dstack
    return _nx.concatenate(map(atleast_3d,tup),2)
    MemoryError

    How do I address this issue?

    Thankyou.

Submit a Comment

You must be logged in to post a comment.