mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix cz function
This commit is contained in:
parent
74826dc1ea
commit
c63df209a8
@ -267,7 +267,7 @@ class Grass7Algorithm(QgsProcessingAlgorithm):
|
||||
layers = [l for l in self.inputLayers if isinstance(l, QgsRasterLayer)]
|
||||
|
||||
# Use this function to calculate cell size
|
||||
cz = lambda l, cellsize: max(cellsize, (l.extent().xMaximum() - l.extent().xMinimum()) / l.width())
|
||||
def cz(l, cellsize): return max(cellsize, (l.extent().xMaximum() - l.extent().xMinimum()) / l.width())
|
||||
|
||||
for layer in layers:
|
||||
cellsize = cz(layer, cellsize)
|
||||
|
Loading…
x
Reference in New Issue
Block a user