[Gdal-dev] shaded relief utility

Paul Surgeon surgpub at telkomsa.net
Mon Dec 12 15:39:45 EST 2005


On Monday 12 December 2005 11:15, Matthew Perry wrote:
> Hey folks,
>
>   If anyone's interested, I created a GDAL-based utility for creating
> shaded relief maps from a DEM. This was for a client who was kind
> enough to let me keep the rights to all of my code ;-) So I'll release
> it to the public domain in case anyone can find a use for it.
>
>   Basically it's a simple GDAL/C++  port of the GRASS algorithm from
> r.shaded.relief. Of course this has the advantage of being able to use
> any GDAL DEM not just a GRASS map.  I've compiled it against gdal
> 1.3.1 on linux and I'd like to see if anyone else has any luck on
> different platforms. Of course suggestions and changes are very
> appreciated as my C++ experience is a bit weak.


Hi Matt

Compiled easily enough on my Kubuntu Breezy system with "g++ hillshade.cpp 
-lgdal -o hillshade" and works perfectly.

If you would like to add an easy to learn and manage cross platform build 
environment take a look at scons.

Now I'm just in need of a tool to make color relief maps. Maybe I can hack 
yours.  :)

Thanks
Paul



More information about the Gdal-dev mailing list