I am planning to build a sample C# application in which a tiff file will be selected and displayed. Using GDALAPI i would like to perform hillshade, slope, color-relief related calculations on the displayed raster. are there any opensource projects already available for display of raster along with its info?
Regards,
Kishore
There is a tool included with GDAL that does what you’re asking for:
gdaldem. (It’s written in C++, not C#. If you download the GDAL source code, you’ll find it undergdal/apps/gdaldem.cpp.)Here are some examples of using it.
Source Heightmap
This is just a greyscale PNG I found on Wikipedia:
Hillshade
Color-relief
using
ramp.txt:(You provide colors for different heights, and
gdaldemwill interpolate).Slope with color-relief
Here’s
slope-ramp.txt:(This time, you provide colors for different angles).
You might also be interested in some of other software using GDAL listed in the Wikipedia entry.