Opened 7 years ago

Closed 7 years ago

Last modified 7 years 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 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 37117:

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

comment:2 by Even Rouault, 7 years ago

In 37118:

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

Note: See TracTickets for help on using tickets.