Skip to content

Indexing algorithms #28

@danlooo

Description

@danlooo

Indexing cells is crucial for reading speed.
We want to put nearby points in cells with similar cell ids.
This is required for fast access of compressed chunks.
Generalized Balanced Ternary (GBT) (Gibson & Lucas, 1982) is a hierarchical prefix code system for aperture 7 grids.
We use GBT to define a central place index (CPI) that works with apertures 3,4 and 7 at all resolutions
Current implementations of CPI: Uber H3, DGGRID FULLER 500m.
A cell may have multiple indices, because it might belong to multiple parents. We need to define one of them to be used.
Pentagon id = Hexagon ID in which one non-centroid sub cell id was removed.

Advantages of Hierarchical Central Place indexing

  • All parent cells are encoded just in the cell ID
  • Works with apertures 3,4, and 7
  • Automatically places nearby cell ids into similar cell IDs (Math. Definition of a space as set of nested sets)
  • Natural chunking scheme (just based on digits)

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions