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

vectorized polyfill #309

Open
geoHeil opened this issue Jan 25, 2023 · 2 comments
Open

vectorized polyfill #309

geoHeil opened this issue Jan 25, 2023 · 2 comments

Comments

@geoHeil
Copy link

geoHeil commented Jan 25, 2023

https://stackoverflow.com/questions/75235467/how-to-parallelize-a-pandas-udf-in-polars-h3-polyfill-for-string-typed-udf-out/75235973#75235973

add support for vectorized polyfill function to fill a polygon with H3 hexagons.

@kylebarron
Copy link
Contributor

Separate from h3-py, there's existing h3-polars support, but it doesn't look like there's a python binding for that yet https://github.com/nmandery/h3ron/tree/main/h3ron-polars cc @nmandery

@nmandery
Copy link

@geoHeil This function runs polyfill etc. on the contents of a geopandas GeoSeries distributing the individual geometries to a thread-pool. https://github.com/nmandery/h3ronpy/blob/20f892e80f24e92afe3030b217456e395ee4ca11/h3ronpy/vector.py#L36 Maybe thats of help for you, but well, thats still build upon geopandas.

Regarding the polars integration: I want to look into porting that to h3o first, mainly to benefit from the stronger typing first.

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

3 participants