Converts geographic coordinates (longitude, latitude) to hexagonal cell hierarchical index strings. These strings encode the face, resolution, and cell location in a Z-order (Morton code) format.
hexify_lonlat_to_h_index(grid, lon, lat)Data frame with columns:
Hierarchical index (character string)
Icosahedron face number (integer, 0-19)
Grid specification from hexify_grid()
Longitude vector in degrees (numeric, -180 to 180)
Latitude vector in degrees (numeric, -90 to 90)
Most users should use hexify_lonlat_to_cell or
hexify_grid_to_cell which return DGGRID-compatible
integer cell IDs.
This function returns hierarchical index strings useful for:
Understanding the cell's position in the hierarchy
Prefix-based spatial queries
Parent/child cell relationships