Bug report #12278

Hypsometric curves returns an error

Added by Paolo Cavallini almost 10 years ago. Updated almost 10 years ago.

Status:Closed
Priority:Normal
Assignee:Alexander Bruy
Category:Processing/QGIS
Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:20461

Description

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py",
line 232, in execute
self.processAlgorithm(progress)
File
"/usr/share/qgis/python/plugins/processing/algs/qgis/HypsometricCurves.py",
line 154, in processAlgorithm
rasterizedDS.SetGeoTransform(newGeoTransform)
AttributeError: 'NoneType' object has no attribute 'SetGeoTransform'

See attached data.

comuni.zip (1.61 MB) Paolo Cavallini, 2015-02-26 09:51 AM

Associated revisions

Revision a41094d4
Added by Alexander Bruy almost 10 years ago

[processing] correctly handle tiny polygons smaller than raster cell
size in Hypsometric curves algorithm (fix #12278)

Revision 7997c353
Added by Alexander Bruy almost 10 years ago

[processing] correctly handle tiny polygons smaller than raster cell
size in Hypsometric curves algorithm (fix #12278)

History

#1 Updated by Paolo Cavallini almost 10 years ago

#2 Updated by Paolo Cavallini almost 10 years ago

DTM too large to attach, please find it here:
http://www.faunalia.eu/~paolo/dtm.tar.gz

#3 Updated by Alexander Bruy almost 10 years ago

  • Assignee changed from Victor Olaya to Alexander Bruy

#4 Updated by Alexander Bruy almost 10 years ago

  • Status changed from Open to In Progress

#5 Updated by Alexander Bruy almost 10 years ago

Found the issue. There is a very small polygon in vector layer, smaller that raster pixel size. This is feature with ID=310 (part of the "Isola del Giglio" commune)

#6 Updated by Alexander Bruy almost 10 years ago

  • Status changed from In Progress to Closed

#7 Updated by Alexander Bruy almost 10 years ago

  • Status changed from Closed to In Progress
  • Resolution set to fixed/implemented

Also backported to 2.8

#8 Updated by Jürgen Fischer almost 10 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF