Skip to content

geohierarchy.h3_table

H3 cell tables -> hexagon geometry (one implementation for every package of the project).

to_gdf(df, h3_column='h3_cell')

Build hexagon polygon geometries for a Polars H3 cell table.

Parameters:

Name Type Description Default
df DataFrame

DataFrame with an h3_column of valid H3 cell ids.

required
h3_column str

Name of the cell-id column.

'h3_cell'

Returns:

Type Description

geopandas.GeoDataFrame (EPSG:4326) with the hexagon boundary

geometry for each cell -- this is the package's I/O boundary for H3

data (matches street-edge output, which is also handed back as a

GeoDataFrame at the API layer).