xdggs.H3Info

xdggs.H3Info#

class xdggs.H3Info(level, ellipsoid='sphere')#

Grid information container for h3 grids.

Parameters:

level (int) – Grid hierarchical level. A higher value corresponds to a finer grid resolution with smaller cell areas. The number of cells covering the whole sphere usually grows exponentially with increasing level values, ranging from 5-100 cells at level 0 to millions or billions of cells at level 10+ (the exact numbers depends on the specific grid).

__init__(level, ellipsoid='sphere')#

Methods

__init__(level[, ellipsoid])

cell_boundaries(cell_ids[, backend])

Derive cell boundary polygons from cell ids

cell_ids2geographic(cell_ids)

Convert cell ids to geographic coordinates

from_dict(mapping)

construct a H3Info object from a mapping of attributes

geographic2cell_ids(lon, lat)

Convert cell ids to geographic coordinates

to_dict()

Dump the normalized grid parameters.

zoom_to(cell_ids, level)

Attributes

ellipsoid

valid_parameters

level

The hierarchical level of the grid