Skip to content

Commit

Permalink
DEMProcessing: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfelian committed Mar 4, 2021
1 parent bf52640 commit 95ad704
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,12 @@ func DEMProcessing(dstDS string, sourceDS Dataset, processing string, colorFileN

cprocessing := C.CString(processing)
defer C.free(unsafe.Pointer(cprocessing))
ccolorFileName := C.CString(colorFileName)
defer C.free(unsafe.Pointer(ccolorFileName))
ds := C.GDALDEMProcessing(cdstDS,
sourceDS.cval,
cprocessing,
ccolorFileName,
demprocessingopts,
&cerr)
if cerr != 0 {
Expand Down

0 comments on commit 95ad704

Please sign in to comment.