"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "python/plugins/processing/algs/grass7/ext/r_rgb.py" between
QGIS-final-3_10_11.tar.gz and QGIS-final-3_10_12.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

r_rgb.py  (QGIS-final-3_10_11):r_rgb.py  (QGIS-final-3_10_12)
skipping to change at line 57 skipping to change at line 57
def processOutputs(alg, parameters, context, feedback): def processOutputs(alg, parameters, context, feedback):
raster = alg.parameterAsRasterLayer(parameters, 'input', context) raster = alg.parameterAsRasterLayer(parameters, 'input', context)
# if the raster was monoband, export from r.rgb # if the raster was monoband, export from r.rgb
for color in ['red', 'green', 'blue']: for color in ['red', 'green', 'blue']:
fileName = alg.parameterAsOutputLayer(parameters, color, context) fileName = alg.parameterAsOutputLayer(parameters, color, context)
if raster.bandCount() == 1: if raster.bandCount() == 1:
grassName = '{}{}'.format(color, alg.uniqueSuffix) grassName = '{}{}'.format(color, alg.uniqueSuffix)
else: else:
grassName = '{}{}'.format(alg.exportedLayers['input'], color) grassName = '{}.{}'.format(alg.exportedLayers['input'], color)
alg.exportRasterLayer(grassName, fileName, True) alg.exportRasterLayer(grassName, fileName, True)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)