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 const char* GeoArrowInferExtensionName(const struct ArrowSchema*) #81

Open
paleolimbot opened this issue Nov 30, 2023 · 0 comments

Comments

@paleolimbot
Copy link
Contributor

There's a good deal of code in Python that would have to be duplicated in R to support inferring the extension name from a storage array. The inference is basically:

  • Binary/Large Binary -> geoarrow.wkb
  • String/LargeString -> geoarrow.wkt
  • Struct/FixedSizeList -> geoarrow.point
  • List<Struct/FixedSizeList> -> geoarrow.multipoint
  • List<List<Struct/FixedSizePoint>> -> geoarrow.multilinestring
  • List<List<List<Struct/FixedSizePoint>>> -> geoarrow.multipolygon

I don't think it needs to perform all out validation...just enough to infer what the extension name would be if it were a valid extension storage type. Then it can be passed to ArrowSchemaInitFromStorage() to do the actual validation.

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

No branches or pull requests

1 participant