2

In QGis 2.2 all my models (processing model builder) are working fine. When I start the same models in 2.4 I get errors like this:

Prepare algorithm 5: Zonal Statistics Running Zonal Statistics [6/8] Parameters: RASTERLAYER_RASTER =C:\Temp\processing\779310258f5d4cc5a0d3f0c747b2627f\RESULT.tif, VECTORLAYER_GRENZEN =C:/Tempordner_GIS/ASL_EK/Bereinigt/018-01/DGM5_UTM32_6stell.shp Prepare algorithm 0: Zonal Statistics Running Zonal Statistics [1/1] Parameters: INPUT_RASTER =C:\Temp\processing\779310258f5d4cc5a0d3f0c747b2627f\RESULT.tif, RASTER_BAND =1, INPUT_VECTOR =C:/Tempordner_GIS/ASL_EK/Bereinigt/018-01/DGM5_UTM32_6stell.shp, COLUMN_PREFIX =_, GLOBAL_EXTENT =True Failed Failed Error executing algorithm 5 Error executing algorithm 0 'NoneType' object has no attribute 'GetGeoTransform' See log for more details

This is the error log:

Uncaught error while executing algorithm Traceback (most recent call last): Traceback (most recent call last): File "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 217, in execute self.processAlgorithm(progress) File "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\algs\qgis\ZonalStatistics.py", line 78, in processAlgorithm geoTransform = rasterDS.GetGeoTransform() AttributeError: 'NoneType' object has no attribute 'GetGeoTransform'

Has anyone a tip for me?

closed as off-topic by PolyGeo Dec 24 '17 at 7:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Could you not re-create your models in QGIS 2.4? Also, do you have both QGIS 2.2 and 2.4 installed? I'm only guessing that there might be a conflict issue...? – Joseph Aug 25 '14 at 11:30
  • When I re-create them it obviously works! But this would be a lot of work. – Pimpel Aug 26 '14 at 14:10
  • 1
    In QGIS 2.4, there may have been changes to the core plugins code which could differ from QGIS 2.2. Perhaps you can save your model from 2.2 as a Python script, load the script into 2.4 and run it as a script. You will be told on which line the error(s) is which might make it easier to debug (if you know a little Python). But hopefully someone could provide much more helpful advice than me :) – Joseph Aug 26 '14 at 14:30
  • Thanx for the tip. I have never worked with python scripts. Is it easy to re -import the model (I saved it as a python script)? – Pimpel Aug 26 '14 at 14:54
  • Processing Toolbox > Scripts > Tools, you can either add the script from file or very simply copy/paste into a new script. Remember to save it in C:\Users(your user name)\.qgis2\processing\scripts (this is the directory for 2.2, not sure if 2.4 uses the same) – Joseph Aug 26 '14 at 15:01