dggrid4py.igeo7

This module provides functionality for working with the IGEO7 discrete global grid system.

Functions

decode_z7hex_index(z7_hex_str)

Decode a Z7 hexadecimal index (provided as hex string).

z7hex_to_z7string(z7_hex_str)

Get the Z7 string representation of a Z7 hexadecimal representation.

z7hex_to_z7int(z7_hex_str)

z7int_to_z7hex(z7_int)

get_z7hex_resolution(z7_hex_str)

Get the resolution of a Z7 cell.

get_z7string_resolution(z7_string)

Get the resolution of a Z7 cell from its Z7_STRING representation.

get_z7hex_local_pos(z7_hex_str)

Get the local position of a cell within its parent cell.

get_z7string_local_pos(z7_string)

Get the local position of a cell within its parent cell.

get_neighbours_by_index(gdf_idx, gpd_sindex)

Get the dataframe indices of the neighbouring cells of a given cell index.

get_neighbours_by_z7(z7_idx, gdf, gpd_sindex)

Get the Z7/Z7_STRING indices of the neighbouring cells of a given cell index.

apply_convert_z7hex_to_z7string(z7_hex_str)