I'm trying to calculate aspect and hillshade in C# using GDAL. I have installed GDAL
and GDAL.Native
packages via NuGet but I could not find the GDALDEMProcessing()
calls (https://gdal.org/programs/gdaldem.html) for calculating aspect and hillshade of DEM file. How to calculate aspect and hillshade in C# using GDAL?
You can use GDAL wrapper function :
Gdal.wrapper_GDALDEMProcessing(destRaster, srcRaster, "hillshade", null, null, null, null)
(you can provide GDALDEMProcessingOptions as 5th parameter)