Skip to content
Permalink
Browse files

[processing] In raster calculator, use filename without extension to …

…refer to layer
  • Loading branch information
volaya committed Dec 6, 2016
1 parent ec8aea2 commit 96b8a90758293ed8ed96fa781c7303a9c2980061
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/RasterCalculator.py
@@ -94,7 +94,7 @@ def processAlgorithm(self, progress):
layersDict = {}
if layersValue:
layers = [dataobjects.getObjectFromUri(f) for f in layersValue.split(";")]
layersDict = {os.path.basename(lyr.source()): lyr for lyr in layers}
layersDict = {os.path.basename(lyr.source().split(".")[0]): lyr for lyr in layers}

for lyr in dataobjects.getRasterLayers():
name = lyr.name()

0 comments on commit 96b8a90

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