Geography Functions (Lakehouse v1)
This section provides reference information for the geography functions in PlaidCloud Lakehouse. These functions are based on the H3 hierarchical hexagonal indexing system developed by Uber for computing geographic relationships.
Coordinate Conversion
Section titled “Coordinate Conversion”Hexagon Properties
Section titled “Hexagon Properties”- H3_CELL_AREA_M2
- H3_CELL_AREA_RADS2
- H3_HEX_AREA_KM2
- H3_HEX_AREA_M2
- H3_GET_BASE_CELL
- H3_GET_FACES
- H3_GET_RESOLUTION
- H3_TO_CENTER_CHILD
- H3_TO_CHILDREN
- H3_TO_GEO_BOUNDARY
- H3_TO_PARENT
- H3_NUM_HEXAGONS
Hexagon Relationships
Section titled “Hexagon Relationships”- H3_HEX_RING
- H3_K_RING
- H3_INDEXES_ARE_NEIGHBORS
- H3_IS_PENTAGON
- H3_IS_RES_CLASS_III
- H3_IS_VALID
- H3_GET_DESTINATION_INDEX_FROM_UNIDIRECTIONAL_EDGE
- H3_GET_INDEXES_FROM_UNIDIRECTIONAL_EDGE
- H3_GET_ORIGIN_INDEX_FROM_UNIDIRECTIONAL_EDGE
- H3_GET_UNIDIRECTIONAL_EDGE_BOUNDARY
- H3_GET_UNIDIRECTIONAL_EDGE
- H3_GET_UNIDIRECTIONAL_EDGES_FROM_HEXAGON
- H3_UNIDIRECTIONAL_EDGE_IS_VALID
Measurement
Section titled “Measurement”- H3_DISTANCE
- H3_EDGE_ANGLE
- H3_EDGE_LENGTH_KM
- H3_EDGE_LENGTH_M
- H3_EXACT_EDGE_LENGTH_KM
- H3_EXACT_EDGE_LENGTH_M
- H3_EXACT_EDGE_LENGTH_RADS