Skip to content

Commit

Permalink
DEM_Tools_main - Fix Crash Aspect calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
BGR-EGHA committed Sep 14, 2021
1 parent e5a0925 commit f266f4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/widgets/DEM_Tools/DEM_Tools_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,10 @@ def aspect(self):
:return: None
"""
self.loggingInfoSignal.emit(self.tr("Calculate aspect..."))
method = self.kwargs[0]
if self.kwargs[1] == "Horn":
method = "Horn"
else:
method = "ZevenbergenThorne"
gdal.DEMProcessing(
self.outDataPath,
self.inDataPath,
Expand Down

0 comments on commit f266f4b

Please # to comment.