Bug report #21264
bug in saga algorithm python
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Processing/SAGA | ||
Affected QGIS version: | 3.4.4 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | Yes | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 29082 |
Description
apps\qgis\python\plugins\processing\algs\saga\SagaAlgorithm.py
While checking QgsProcessingParameterMultipleLayers param a param XGRIDS was attempted to be added as a file
Should not get from parameters but from the layer source itself
From line 217 till 219
if layer.source().lower().endswith('sdat'):
files.append(parameters[param.name()].source()[:-4] + 'sgrd')
if layer.source().lower().endswith('sgrd'):
files.append(parameters[param.name()].source())
change to
if layer.source().lower().endswith('sdat'):
files.append(layer.source()[:-4] + 'sgrd')
if layer.source().lower().endswith('sgrd'):
files.append(layer.source())
else:
Associated revisions
History
#1 Updated by Giovanni Manghi almost 6 years ago
- Resolution deleted (
fixed/implemented) - Category changed from Python bindings / sipify to Processing/SAGA
- Crashes QGIS or corrupts data changed from Yes to No
- Easy fix? changed from Yes to No
#2 Updated by Giovanni Manghi almost 6 years ago
- Status changed from Open to Feedback
Can you submit a pull request on Github? thanks.
#3 Updated by Wim Dedulle almost 6 years ago
#4 Updated by Giovanni Manghi almost 6 years ago
- Status changed from Feedback to Open
- Pull Request or Patch supplied changed from No to Yes
Thanks!
#5 Updated by Luigi Pirelli almost 6 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|6872ce7f32856965cc8f0b923238cfa3ac2a9d2c.