Skip to content
Permalink
Browse files

Fix cz function

  • Loading branch information
Médéric RIBREUX
Médéric RIBREUX committed Oct 25, 2017
1 parent 74826dc commit c63df209a87dbce1b3b2acb9ae166f94db0ad51e
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -267,7 +267,7 @@ def getDefaultCellSize(self):
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)

0 comments on commit c63df20

Please sign in to comment.
You can’t perform that action at this time.