When I try to run the "add raster value to features" (available into SAGA Tools), I get this error:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmDialog.py", line 249, in accept
    msg = self.alg._checkParameterValuesBeforeExecuting()
  File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 239, in _checkParameterValuesBeforeExecuting
    return self.checkParameterValuesBeforeExecuting()
  File "/usr/share/qgis/python/plugins/processing/algs/saga/SagaAlgorithm.py", line 343, in checkParameterValuesBeforeExecuting
    param.datatype == dataobjects.TYPE_RASTER):
AttributeError: 'module' object has no attribute 'TYPE_RASTER'

I'm using QGIS 2.18.10 and Python 2.7.12 on Ubuntu 16.04

I don't have any clue to solve this error.

  • which version of saga is installed? – johanvdw Jul 3 '17 at 11:22
  • I came across the same problem. Same QGIS version, same Ubuntu and I have saga 2.3.1 – Gugaci Jul 4 '17 at 13:25
  • @johanvdw I have installed saga 2.3.1 – Jc Cabrera Jul 4 '17 at 16:19

It looks like this is a known issue in QGIS: https://issues.qgis.org/issues/16920

  • Should be fixed now. – underdark Nov 11 '17 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.