mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] correctly handle tiny polygons smaller than raster cell
size in Hypsometric curves algorithm (fix #12278)
This commit is contained in:
parent
3a187be11e
commit
a41094d42e
@ -132,6 +132,12 @@ class HypsometricCurves(GeoAlgorithm):
|
||||
srcOffset = (startColumn, startRow, width, height)
|
||||
srcArray = rasterBand.ReadAsArray(*srcOffset)
|
||||
|
||||
if srcOffset[2] == 0 or srcOffset[3] == 0:
|
||||
progress.setInfo(
|
||||
self.tr('Feature %d does is smaller than raster '
|
||||
'cell size' % f.id()))
|
||||
continue
|
||||
|
||||
newGeoTransform = (
|
||||
geoTransform[0] + srcOffset[0] * geoTransform[1],
|
||||
geoTransform[1],
|
||||
|
Loading…
x
Reference in New Issue
Block a user