Nirajan Pant
Nirajan Pant

Reputation: 75

How to call GDALDEMProcessing from the GDAL C# wrapper?

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?

Upvotes: 2

Views: 636

Answers (1)

jsiot
jsiot

Reputation: 126

You can use GDAL wrapper function :

Gdal.wrapper_GDALDEMProcessing(destRaster, srcRaster, "hillshade", null, null, null, null)

(you can provide GDALDEMProcessingOptions as 5th parameter)

Upvotes: 1

Related Questions