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

refactor: Separate out visitor-based native array writer from buffer-based writer for native arrays #114

Merged
merged 12 commits into from
Jan 13, 2025

Conversation

paleolimbot
Copy link
Contributor

@paleolimbot paleolimbot commented Jan 9, 2025

This PR improves the consistency of the C API by adding the GeoArrowNativeWriter to match the GeoArrowWKTWriter and GeoArrowWKBWriter. Before, the GeoArrowBuilder served the purpose of both building by buffer and building by visitor, which was slightly confusing since it could be used to build WKB and WKT arrays too (except when using the visitor).

This hopefully makes it more clear that the GeoArrowArrayWriter and GeoArrowArrayReader are the things you want if you are reading arbitrary input/generating arbitrary output.

@paleolimbot paleolimbot marked this pull request as ready for review January 13, 2025 04:52
@paleolimbot paleolimbot merged commit 1b1ee2f into geoarrow:main Jan 13, 2025
9 checks passed
@paleolimbot paleolimbot deleted the api-consistency branch January 13, 2025 16:48
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.

1 participant