yeesian / ArchGDAL.jl

A high level API for GDAL - Geospatial Data Abstraction Library
https://yeesian.github.io/ArchGDAL.jl/stable/
Other
137 stars 25 forks source link

Type of buffer in `read!` is too restricted #410

Closed felixcremer closed 4 months ago

felixcremer commented 4 months ago

When I try to plot a Raster which is based on an ArchGDAL overview array this does not work because I can't read! into a PermutedDims array. See https://github.com/rafaqz/Rasters.jl/issues/596.

Can we expand the type that read! accepts so that we could read also into AbstractMatrix and not only Matrix?

rafaqz commented 4 months ago

Possible that ArchGDAL.jl is passing that to C? In which case Array is really needed.

yeesian commented 4 months ago

Possible that ArchGDAL.jl is passing that to C?

Yes, they are being passed to C (but I can also see that it is too type-restrictive in some settings)