Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#6775 closed defect (fixed)

gdal.DEMProcessingOptions(zeroForFlat=True) doesn't work

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone:
Component: PythonBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

Reported on mailing list:

Running: 
opts = gdal.DEMProcessingOptions(zeroForFlat=True)
gdal.DEMProcessing('my\out\file_aspect.tif', 'my\in\dem.tif', 'aspect',
options=opts)

resuts in the error:

Too many command options 'zero_for_flat'

However, if I run it as:

opts = ['-zero_for_flat']
gdal.DEMProcessing('my\out\file_aspect.tif', 'my\in\dem.tif', 'aspect',
options=opts)

Change History (2)

comment:1 Changed 5 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 37117:

Python bindings: fix gdal.DEMProcessingOptions(zeroForFlat=True) (fixes #6775)

comment:2 Changed 5 months ago by Even Rouault

In 37118:

Python bindings: fix gdal.DEMProcessingOptions(zeroForFlat=True) (fixes #6775)

Note: See TracTickets for help on using tickets.