Crate h3ron

Source
Expand description

This crate depends on the h3ron-h3-sys crate, which includes the C sources for libh3. So compiling requires a C toolchain and the cmake build tool.

§Features

  • use-serde: serde serialization/deserialization for most types of this crate.
  • use-rayon
  • roaring: Enables collections::H3Treemap based on the roaring crate.
  • parse: Parse H3Cell from different string representations using H3Cell::from_str.

Re-exports§

pub use to_geo::to_linked_polygons;
pub use to_geo::ToAlignedLinkedPolygons;
pub use to_geo::ToCoordinate;
pub use to_geo::ToLinkedPolygons;
pub use to_geo::ToPolygon;
pub use error::Error;
pub use localij::CoordIj;
pub use to_h3::ToH3Cells;
pub use to_h3::ToIntersectingH3Cells;

Modules§

algorithm
collections
Hashing
error
iter
Iterator functionalities
localij
to_geo
to_h3

Structs§

H3Cell
H3 Index representing a H3 Cell (hexagon)
H3DirectedEdge
H3 Index representing an directed H3 edge

Enums§

H3Direction
H3 digit representing ijk+ axes direction. See documentation

Constants§

H3_MAX_RESOLUTION
H3_MIN_RESOLUTION

Traits§

FromH3Index
trait for types which can be created from an H3Index
HasH3Resolution
trait to be implemented by all structs being based on H3 data with a given resolution
Index
Trait to handle types having a H3 Index like cells and edges

Functions§

compact_cells
the input vec must be deduplicated and all cells must be at the same resolution
grid_path_cells
Line of h3 indexes connecting two cells
grid_path_cells_size
Number of cells in a line connecting two cells
line
Generate h3 cells along the given linestring
max_grid_disk_size
maximum number of cells needed for the k_ring
res0_cell_count
res0_cell_count returns the number of resolution 0 indexes
res0_cells
provides all base cells in H3Index format