How to do raster layer stack using Qgis processing?

المشرف العام

Administrator
طاقم الإدارة
I tried to do Layer stacking using Qgis processing with the following code

import processing processing.runalg("gdalogr:merge",("D:\Temp1\LC81420512015095LGN00_B1.tif","D:\Temp1\LC81420512015095LGN00_B2.tif","D:\Temp1\LC81420512015095LGN00_B3.tif"), False, True, 2, "D:\\temp\\Landsat\\mergeimage.img")and getting the following error

"Traceback (most recent call last): File "", line 1, in File "C:/Users/.qgis2/python/plugins\processing\tools\general.py", line 71, in runalg alg = Processing.runAlgorithm(algOrName, None, *args) File "C:/Users/.qgis2/python/plugins\processing\core\Processing.py", line 335, in runAlgorithm if not alg.checkInputCRS(): File "C:/Users/.qgis2/python/plugins\processing\core\GeoAlgorithm.py", line 410, in checkInputCRS crs = dataobjects.getObject(item).crs()AttributeError: 'NoneType' object has no attribute 'crs'"

I checked all layers for crs and it is there. Please help me to solve this issue.



أكثر...
 
أعلى