Skip to content

Implement const char* GeoArrowInferExtensionName(const struct ArrowSchema*) #81

Description

@paleolimbot

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions