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

Write a table with geoarrow.wkb column to FlatGeoBuf #991

Open
paleolimbot opened this issue Feb 3, 2025 · 1 comment
Open

Write a table with geoarrow.wkb column to FlatGeoBuf #991

paleolimbot opened this issue Feb 3, 2025 · 1 comment

Comments

@paleolimbot
Copy link

When I do:

write_flatgeobuf()

...when the geometry is geoarrow.wkb encoded, I get:

Exception: General error: Expected GeoArrow native type, got 'geoarrow.wkb'.
If you're passing a serialized GeoArrow type like 'geoarrow.wkb' or 'geoarrow.wkt', you need to parse to a native representation.

I seem to remember the motivation here was that wkb is slower; however, at the point that you're writing to disk is that really relevant? (Or alternatively, is there a compact incantation to like parse_to_native_representation() that could be pointed to in the error message?)

@kylebarron
Copy link
Member

I think this is part of my general refactor to split native types and serialized types. So right now the writer expects only native types. But it would be ideal to extend this to handle all geoarrow types

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

2 participants