yeesian / ArchGDAL.jl

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

Add conversion for Enum types. #324

Closed evetion closed 2 years ago

evetion commented 2 years ago

As a table with an Vector{<:Enum} now can't be written. Enum stores the flags as Integer, so we already have the means to write its values. The only drawback is that we cannot restore the Enum once the value has been written.

yeesian commented 2 years ago

The only drawback is that we cannot restore the Enum once the value has been written.

I think that's reasonable? At most they'll have to restore it themselves, like

julia> ArchGDAL.OGRFieldType(Int64(ArchGDAL.OFTInteger64))==ArchGDAL.OFTInteger64
true
evetion commented 2 years ago

True, but I wanted to mention it explicitly.