Learn R Programming

hexify (version 0.3.8)

hexify_z7_canonical: Get canonical form of Z7 index

Description

For Z7 indices that form cycles during decode/encode, returns the lexicographically smallest index in the cycle. Provides stable unique identifiers for aperture 7 grids.

Usage

hexify_z7_canonical(index, max_iterations = 128L)

Value

Canonical form (lexicographically smallest in cycle)

Arguments

index

Z7 index string

max_iterations

Maximum iterations for cycle detection (default 128)

See Also

Other hierarchical index: hexify_cell_to_index(), hexify_compare_indices(), hexify_default_index_type(), hexify_get_children(), hexify_get_parent(), hexify_get_resolution(), hexify_index_to_cell(), hexify_index_to_lonlat(), hexify_is_valid_index_type(), hexify_lonlat_to_index()

Examples

Run this code
# These all return the same canonical form
hexify_z7_canonical("110001")
hexify_z7_canonical("110002")

Run the code above in your browser using DataLab