Open alex-s-gardner opened 2 days ago
This is indeed a limitation by GDAL. Would you expect a better error, or an automatic conversion?
Are you sure about Vector{Float32}
that seems like a pretty basic type... looking through the GDAL docs I can't readily determine what types are supported. I see that GeoTiff these types are supported.
I would automatic conversion with a warning?
Yeah, gdal defines a list of doubles (float64) only. https://gdal.org/en/latest/doxygen/ogr__api_8h.html#a83a56d01128bf247016c139faed157be. ArchGDAL follows it to the letter, but should probably be more lenient and just convert. All your other types can also be converted without data loss. You just won't get them back as the same type.
These types all error: Vector{Int8}, Vector{UInt16}, Vector{Int16}, Vector{Float32}
These types do not: UInt8(), Int8(), UInt16(), Int16(), Float32(), Float64(), Vector{UInt8}, Vector{Float64}
This is likely an ArchGDAL issue but thought I'd start the discussion here.
Typical error message looks like this: