Closed janzandr closed 2 weeks ago
Let's just add a crs argument to the RasterReader constructor.
reader = RasterReader(enmap, crs=QgsCoordinateReferenceSystem('EPSG:4326'))
extent = QgsRectangle(13.24539916899924741, 52.41274014201967901, 13.34677689752254182, 52.52184188795427389)
array = reader.arrayFromBoundingBoxAndSize(extent, 220, 400, [1])
The raster pipe can also be changed afterwards via RasterReader.setRasterPipeCrs(crs).
It is proposed to support reading raster data in blocks that don't match the native raster CRS. We already have algorithms that allow the processing of raster layers with different CRS, but this involves explicite creation of a warped raster (usually a VRT). Proposed solution will use the QgsRasterPipe class, e.g.