Skip to content

Commit f266f4b

Browse files
committed
DEM_Tools_main - Fix Crash Aspect calculation
1 parent e5a0925 commit f266f4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/widgets/DEM_Tools/DEM_Tools_main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,10 @@ def aspect(self):
851851
:return: None
852852
"""
853853
self.loggingInfoSignal.emit(self.tr("Calculate aspect..."))
854-
method = self.kwargs[0]
854+
if self.kwargs[1] == "Horn":
855+
method = "Horn"
856+
else:
857+
method = "ZevenbergenThorne"
855858
gdal.DEMProcessing(
856859
self.outDataPath,
857860
self.inDataPath,

0 commit comments

Comments
 (0)