scalenav.scale_nav.add_geom(grid, crs='EPSG:4326')

Add the geometries of the cells to a data frame projected on the H3 grid. Using the h3_id column as reference.

Parameters:
  • grid (A data table that contains an 'h3_id' column among others.)

  • crs (default 'epsg:4326'.)

Return type:

A geopandas.GeoDataFrame with a column ‘geom’ containing the geometries of the hexagons.

scalenav.scale_nav.set_res(grid, final=8)

Similarly to the change_scale function, but sets the resolution to a specific value.

Parameters:
  • grid (a data frame with h3_id column.)

  • final (the final resolution value desired.)

Return type:

A data table with the desired resolution and data transformations performed.