Ask Geographic Information System (GIS)

Why does “clip raster by mask layer” in QGIS seem to take forever?

I have successfully used the "Clip" operation to trim a vector layer by another vector layer. Now I’m trying to do the same thing with a raster layer using "Clip raster by mask layer", but it seems to be taking forever: after watching the "Processing algorithm…" message for several (> 5) minutes with no sign […]


Saving array as Geotiff using rasterio

I have the following numpy array: supervised.shape (1270, 1847) I am trying to use the following code to save it to GeoTIFF using rasterio: with‘/my/path/ReferenceRaster.tif’) as src: ras_meta = src.profile with‘/my/output/path/output_supervised.tif’, ‘w’, **ras_meta) as dst: dst.write(supervised) Where ras_meta is: {‘driver’: ‘GTiff’, ‘dtype’: ‘float32’, ‘nodata’: None, ‘width’: 1847, ‘height’: 1270, ‘count’: 1, ‘crs’: CRS.from_epsg(32736), […]