Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

asinghvi17
Copy link
Member

@asinghvi17 asinghvi17 commented Sep 21, 2024

  • Needs tests
  • needs docs

Comment on lines +101 to +108
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
Copy link
Member Author

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?

Copy link
Member

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.

@asinghvi17
Copy link
Member Author

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?

@rafaqz
Copy link
Member

rafaqz commented Nov 5, 2024

You mean if its a single String we should return (Symbol(str),) ?

@asinghvi17
Copy link
Member Author

Yes

@rafaqz
Copy link
Member

rafaqz commented Nov 5, 2024

Sounds pragmatic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants