Skip to contents

Indexing

Convert between coordinates and A5 cell indices.

a5_lonlat_to_cell()
Convert coordinates to A5 cell indices
a5_cell_to_lonlat()
Convert A5 cell indices to coordinates

Cell type

The a5_cell vector type and helpers.

Hierarchy

Navigate the cell hierarchy across resolutions.

a5_get_resolution()
Get the resolution of A5 cell indices
a5_cell_to_parent()
Navigate to parent cell(s)
a5_cell_to_children()
Get child cells
a5_get_res0_cells()
Get all resolution-0 root cells

Geometry & info

Cell boundaries, areas, and counts.

a5_cell_to_boundary()
Get cell boundary polygons
a5_cell_area()
Cell area at a given resolution
a5_get_num_cells()
Total number of cells at a given resolution

Compact & uncompact

Compress and expand sets of cells.

a5_compact()
Compact a set of A5 cells
a5_uncompact()
Uncompact a set of A5 cells to a target resolution

Grid generation

Generate grids of cells covering an area.

a5_grid()
Generate a grid of A5 cells covering an area

wk integration

Methods for the wk geometry framework.

wk_handle(<a5_cell>) wk_crs(<a5_cell>)
wk methods for a5_cell