rafaqz / Rasters.jl

Raster manipulation for the Julia language
MIT License
209 stars 36 forks source link

`coverage` should check `scale` before allocating larger-than-memory buffer arrays #661

Closed rafaqz closed 4 months ago

rafaqz commented 4 months ago

scale=1000 will nearly always kill julia by trying to make a 1000 * 1000 * prod(size(raster)) BitMatrix for the coverage buffer.

That's usually like a terrabyte. We should check available memory and error rather than killing julia.