Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+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) |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.