-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement crs and geometrycolumn fallbacks via DataAPI #161
base: main
Are you sure you want to change the base?
Conversation
asinghvi17
commented
Sep 21, 2024
•
edited
Loading
edited
- Needs tests
- needs docs
function _get_dataapi_metadata(geom::GeomType, key, default) where GeomType | ||
if DataAPI.metadatasupport(GeomType).read | ||
if key in DataAPI.metadatakeys(geom) | ||
return DataAPI.metadata(geom, key; style = false) | ||
end | ||
end | ||
return default | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I move this to some other location / file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe to (a new) metadata.jl? I discussed having a Geometadata.jl package with @rafaqz, but that's probably overkill for now.
This needs to also check the type of the returned geometrycolumns data, and if it's not a tuple of symbols (maybe it's a String, since Arrow only supports String -> String metadata), it should convert it. Does that make sense? |
You mean if its a single |
Yes |
Sounds pragmatic |