[Qgis-user] Python error when trying to do a slope analysis in a DEM raster file

larry mason glmason.lm at gmail.com
Mon Jul 9 10:29:03 PDT 2018


I know I should read the documentation just not sure where to find it. I'm
trying to do a slope analysis of a DEM raster layer... I get the following
python stack trace:

snip---------------

An error has occurred while executing Python code:

AttributeError: 'slope' object has no attribute 'preprocessParameters'

Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py",
line 181, in
    action.triggered.connect(lambda: _executeAlgorithm(alg))
  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py",
line 227, in _executeAlgorithm
    dlg = alg.createCustomParametersWidget(None)
  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithm.py",
line 62, in createCustomParametersWidget
    return GdalAlgorithmDialog(self)
  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py",
line 58, in __init__
    self.mainWidget().parametersHaveChanged()
  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py",
line 110, in parametersHaveChanged
    parameters = self.parent.getParameterValues()
  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py",
line 119, in getParameterValues
    return self.algorithm().preprocessParameters(parameters)
AttributeError: 'slope' object has no attribute 'preprocessParameters'


Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC
v.1900 64 bit (AMD64)]
QGIS version: 3.0.0-Girona Girona, 001c80b0c3

end snip-----------------------

So I'm wondering if I need to set anything up for QGIS is use python
modules. Or where one sets up preprocessing Parameters. Any good tutorials
on loading DEMs. configuring properties, and running analysis. Thanks,
Larry






[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&>
07/09/18,
12:25:29 PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180709/e31e2cc7/attachment.html>


More information about the Qgis-user mailing list