hexify_z7_canonical: Get canonical form of Z7 index

View source: R/hexify_index.R

hexify_z7_canonicalR Documentation

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)

Arguments

index

Z7 index string

max_iterations

Maximum iterations for cycle detection (default 128)

Value

Canonical form (lexicographically smallest in cycle)

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

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

hexify documentation built on March 1, 2026, 1:07 a.m.