0001-Update-contour.py.patch
python/plugins/processing/algs/gdal/contour.py | ||
---|---|---|
55 | 55 |
IGNORE_NODATA = 'IGNORE_NODATA' |
56 | 56 |
NODATA = 'NODATA' |
57 | 57 |
OFFSET = 'OFFSET' |
58 |
OPTIONS = 'OPTIONS' |
|
58 | 59 |
OUTPUT = 'OUTPUT' |
59 | 60 | |
60 | 61 |
def __init__(self): |
... | ... | |
74 | 75 |
self.addParameter(QgsProcessingParameterString(self.FIELD_NAME, |
75 | 76 |
self.tr('Attribute name (if not set, no elevation attribute is attached)'), |
76 | 77 |
defaultValue='ELEV', |
78 |
optional=True)) |
|
79 |
self.addParameter(QgsProcessingParameterString(self.OPTIONS, |
|
80 |
self.tr('Additional creation options'), |
|
81 |
defaultValue='', |
|
77 | 82 |
optional=True)) |
78 | 83 | |
79 | 84 |
create_3d_param = QgsProcessingParameterBoolean(self.CREATE_3D, |
... | ... | |
162 | 167 | |
163 | 168 |
if offset: |
164 | 169 |
arguments.append('-off {}'.format(offset)) |
170 |
|
|
171 |
if options: |
|
172 |
arguments.append(options) |
|
165 | 173 | |
166 | 174 |
if outFormat: |
167 | 175 |
arguments.append('-f {}'.format(outFormat)) |
168 |
- |