Skip to main content

Module encode

Module encode 

Source
Expand description

High-level coordinate-prefix encoding.

Combines super::normalize with super::hilbert / super::zorder and dispatches off the schema’s crate::schema::CellOrder for cell-prefix encoding, or crate::schema::TileOrder for tile-prefix encoding (tile coords are cell coords integer-divided by tile_extents).

Functions§

encode_cell_prefix
Encode whichever space-filling curve the schema declares for cells.
encode_hilbert_prefix
Encode a Hilbert prefix for one cell coordinate using the schema’s configured per-dim bit budget.
encode_tile_prefix_with_order
Encode whichever curve the schema declares for tile boundaries.
encode_zorder_prefix
Encode a Z-order prefix for one cell coordinate.