I am creating a QgsRectangle
like this:
llc = QgsPointXY(319660,4624088) # lower left corner in UTM
urc = QgsPointXY(396425,4742843) # upper right corner in UTM
aoi = QgsRectangle(llc,urc)
But how do I tell him the correct crs of these points? Can I pass the EPSG somehow?
QgsPointXY
class creates a point either from another point or from x,y coordinates. If you need you can reproject as shown here: gis.stackexchange.com/questions/349585/reprojecting-qgspointxy or here: docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/…QgsRasterCalculator('ras@1', output, 'GTiff', aoi, 15353, 23751, entries)