Skip to content

Commit 16e82f0

Browse files
committed
[processing] fix loading of output rasters with wrong CRS
1 parent 2d835fb commit 16e82f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/tools/dataobjects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def load(fileName, name=None, crs=None, style=None):
168168
else:
169169
qgslayer = QgsRasterLayer(fileName, name)
170170
if qgslayer.isValid():
171-
if crs is not None:
171+
if crs is not None and qgslayer.crs() is None:
172172
qgslayer.setCrs(crs, False)
173173
if style is None:
174174
style = ProcessingConfig.getSetting(

0 commit comments

Comments
 (0)