Inspection

Functions for examining properties of H3 indexes.

Corresponds to the H3 C API Inspection section.

Index Properties

FastH3.maxFaceCountFunction
maxFaceCount(h::H3Index) -> Tuple{H3Error, Int}

Get the maximum number of icosahedron faces a cell may intersect.

See also the H3 C API: maxFaceCount

source
FastH3.getIcosahedronFacesFunction
getIcosahedronFaces(op::F, h::H3Index) -> H3Error where {F}

Call op(face) for each assigned icosahedron face index (omits internal INVALID_FACE slots; order matches increasing slot index among valid faces). For the fixed-length Vector{Int} buffer including sentinel slots, use the getIcosahedronFaces(h) overload.

See also the H3 C API: getIcosahedronFaces

source
getIcosahedronFaces(h::H3Index) -> Tuple{H3Error, Vector{Int}}

Get all icosahedron faces intersected by a cell.

See also the H3 C API: getIcosahedronFaces

source

String Conversion

FastH3.stringToH3Function
stringToH3(str::AbstractString) -> Tuple{H3Error, H3Index}

Parse a hexadecimal string to an H3 index.

See also the H3 C API: stringToH3

source

Error Descriptions

Types

FastH3.H3IndexType

64-bit H3 index. Alias for UInt64. Encodes cell, directed edge, or vertex identifiers in the H3 system.

source