-
Notifications
You must be signed in to change notification settings - Fork 4
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
Initial geoarrow.shapely
implementation
#2
base: main
Are you sure you want to change the base?
Conversation
I am still exploring all the work you and Dewey have been doing, but so there are also pyarrow extension type and array definitions in the |
yeah I didn't know those existed when I wrote these 🙈
This might be a case like in Shapely's API design, where you might like to put methods directly on the array class, but in shapely's case, that's a numpy array, and you can't add methods here. And so likewise even if I'd like an API design that's
I think my questions are:
|
I definitely didn't do a good job of advertising that I'd done any of this! I basically was just poking away at it over the last two quarters to make sure our devrel team had something to demo when they write a post about this. The geoarrow-python repo is definitely the place for this (makes it clear what Python users should look for). FWIW, I think that I'm also pro static typing but I'm not very good at it. PRs welcome! I see the ecosystem as more like:
...but obviously that's off-the-cuff! |
Change list
to_shapely
method to convert back to a shapely array.PointArray()[i].as_py()
to get a shapely object.This is loosely based on @jorisvandenbossche 's python-geoarrow (ref jorisvandenbossche/python-geoarrow#2), but updated to use shapely instead of pygeos and updated to have a separate extension array for each geometry type.
Questions:
TODO: