nmandery / h3ronpy

A data science toolkit for the H3 geospatial grid
65 stars 7 forks source link

List of cells to GeoArrow Polygon Array #57

Open kylebarron opened 4 days ago

kylebarron commented 4 days ago

I'm interested in potentially using h3ronpy from Lonboard, a Python library I develop for fast geospatial visualization in deck.gl. One of the ways I'd like to support visualizing H3 data is by converting the H3 cells to polygons, and then rendering those polygons. (See also https://github.com/xarray-contrib/xdggs/pull/67) The h3-py function h3_to_geo is not vectorized, and so is very slow.

I know you have https://github.com/nmandery/h3ronpy/blob/f9176e039821a9ed834f8f83ab5b65f9a1e144bc/crates/h3arrow/src/array/to_geoarrow.rs; is that exported to the Python API yet?

nmandery commented 3 days ago

This part is not yet available to python yet. I thought about using https://github.com/geoarrow/geoarrow-rs/tree/main/python/pyo3-geoarrow to avoid having to implement the conversions myself, but noticed it is not available on crates.io. Do you plan to publish it?

kylebarron commented 2 days ago

not available on crates.io. Do you plan to publish it?

Just published geoarrow v0.4.0-beta.1 and pyo3-geoarrow v0.1.0-beta.1.

Would like to publish stable versions in the next week or two but need to clean up some things first.