Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] fix loading of output rasters with wrong CRS
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
python/plugins/processing/tools/dataobjects.py
|
@@ -168,7 +168,7 @@ def load(fileName, name=None, crs=None, style=None): |
|
|
else: |
|
|
qgslayer = QgsRasterLayer(fileName, name) |
|
|
if qgslayer.isValid(): |
|
|
if crs is not None: |
|
|
if crs is not None and qgslayer.crs() is None: |
|
|
qgslayer.setCrs(crs, False) |
|
|
if style is None: |
|
|
style = ProcessingConfig.getSetting( |
|
|