Skip to content

Commit

Permalink
Update rasterreader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
janzandr committed Oct 28, 2024
1 parent 7c28557 commit 2ee4436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enmapboxprocessing/rasterreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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(
Expand Down

0 comments on commit 2ee4436

Please sign in to comment.