ArchGDAL.jl
ArchGDAL.jl copied to clipboard
List of GCI enum values not up to date in ArchGDAL
It seems that the list of the possible CGI enum values in ArchGDAL only lists the first 17 entries. The enum values in libgdal has been expanded to include several IR and SAR bands. These are accessible via GDAL.jl, and the values work in ArchGDAL too, but it would be nice to have them included in ArchGDAL itself.
Thanks for making an issue! Given your detective work, would you be willing to open a PR?
I can try, but I'm a bit confused about some of the relationships between the GDAL.jl and ArchGDAL.jl enums, so I'm not sure what's the way to proceed. I thought they would be interchangeable, but they are not (I tried passing the GDAL.jl constant to ArchGDAL.setcolorinterp! and it failed). Maybe the quickest path is to alias them, but I don't know if there was a reason behind not doing that?
Don't remember the reasons, but this was also discussed in https://github.com/yeesian/ArchGDAL.jl/pull/327#issuecomment-1259493599, and perhaps the macroexpand linked there can help?