-
Notifications
You must be signed in to change notification settings - Fork 20
Implement crs and geometrycolumn fallbacks via DataAPI #161
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
Conversation
src/fallbacks.jl
Outdated
| 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 |
|
OK, I've added some aftercare functions here. Do we want anything else? |
rafaqz
left a comment
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.
LGTM. Can we merge?
Uh oh!
There was an error while loading. Please reload this page.