Hi Larry,
it’s difficult to tell what went wrong without knowing the steps and the data you used. I just tried all the slope algorithms in the toolbox (gdal:slope, qgis:slope) and all work nicely here. I use QGIS 3 from the OSGeo4W-Installation … used a projected (in meters) SRTM scene and had no troubles running the slope algorithms. Frank Dipl. Geogr. Frank Broniewski Waldhölzbacher Str. 51 66679 Losheim am See 06872 509 068 4 0176 611 26 9 2 6 <http://www.frankbroniewski.com> www.frankbroniewski.com Von: Qgis-user <[email protected]> Im Auftrag von larry mason Gesendet: Montag, 9. Juli 2018 19:29 An: [email protected] Betreff: [Qgis-user] Python error when trying to do a slope analysis in a DEM raster file <https://mailtrack.io/trace/mail/4790cfbaf39d64c696d840259962559ef60d0b91.png?u=651070> 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 <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&> Sender notified by <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&> Mailtrack 07/09/18, 12:25:29 PM
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
