From 2ee4436687726cdaa27382b3a0458b7f51864e4f Mon Sep 17 00:00:00 2001 From: Andreas Janz Date: Mon, 28 Oct 2024 15:30:24 +0100 Subject: [PATCH] Update rasterreader.py --- enmapboxprocessing/rasterreader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/enmapboxprocessing/rasterreader.py b/enmapboxprocessing/rasterreader.py index 9e045d1a..3aeb247f 100644 --- a/enmapboxprocessing/rasterreader.py +++ b/enmapboxprocessing/rasterreader.py @@ -234,6 +234,7 @@ def walkGrid( def setRasterPipeCrs(self, crs: QgsCoordinateReferenceSystem = None): if crs is None: projector = self.provider + pipe = None elif isinstance(crs, QgsCoordinateReferenceSystem): pipe = QgsRasterPipe() pipe.set(self.provider.clone()) @@ -242,6 +243,7 @@ def setRasterPipeCrs(self, crs: QgsCoordinateReferenceSystem = None): pipe.insert(1, projector) else: raise ValueError() + self.pipe = pipe self.projector = projector def arrayFromBlock(