h3ron-polars

Crates.ioh3ron-polars
lib.rsh3ron-polars
version0.4.0
sourcesrc
created_at2022-10-25 20:06:00.938509
updated_at2023-12-16 19:29:16.649577
descriptionIntegration of the h3 geospatial indexing system with polars dataframes
homepagehttps://github.com/nmandery/h3ron
repositoryhttps://github.com/nmandery/h3ron
max_upload_size
id697163
size84,237
Nico Mandery (nmandery)

documentation

README

h3ron-polars

Latest Version Documentation

Integration of the h3 geospatial indexing system with polars dataframes by providing extension traits to UInt64Chunked and DataFrame.

This integration does not aim to be feature-complete, it was created by moving functionalities implemented in other projects to this common crate for better usability. In case of missing features, please submit a PR.

Some features so far:

  • Convert from UInt64Chunked to H3 cells and edges and vice versa.
  • Algorithms on UInt64Chunked for building grid-disks, changing the cell resolution, deriving the bounding box and some more.
  • Spatial-indexing of H3-cells and edges using the kdbush spatial index. The spatial index returns a BooleanChunked array suitable to be used with polars filters.
  • Algorithms on DataFrame for compacting/uncompacting the contained data by grouping the rows based on the remaining columns and applying compaction/uncompaction to the cell column.

Maintenance status

In january 2023 the h3o library - a port of H3 to rust - has been released. This brings many benefits including type safety, compilation to WASM and performance improvements (example: issue comparing raster to h3 conversion).

As a result this library will most certainly only receive dependency upgrades in the future.

Commit count: 498

cargo fmt