ArchGDAL.jl icon indicating copy to clipboard operation
ArchGDAL.jl copied to clipboard

List of GCI enum values not up to date in ArchGDAL

Open Oblomov opened this issue 8 months ago • 3 comments

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.

Oblomov avatar Mar 30 '25 07:03 Oblomov

Thanks for making an issue! Given your detective work, would you be willing to open a PR?

evetion avatar Mar 30 '25 13:03 evetion

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?

Oblomov avatar Mar 31 '25 20:03 Oblomov

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?

visr avatar Apr 03 '25 14:04 visr