Table of Contents

Namespace H3.NET.Native

Classes

GeoPolygon

A polygon defined by an exterior ring and zero or more interior holes, with all vertices expressed in degrees.

H3DomainException

Thrown when an argument passed to an H3 operation was outside its acceptable range (a domain error), including invalid latitude/longitude, resolution, or option/flags values.

H3Exception

The base exception thrown when an H3 operation fails. Carries the numeric ErrorCode reported by the native library together with its human-readable description.

H3InvalidIndexException

Thrown when an H3Index argument was not a valid cell, edge, or vertex index.

H3MemoryException

Thrown when the native library failed to allocate memory, or when a caller-provided buffer was not large enough for the result.

H3PentagonException

Thrown when pentagon distortion was encountered and the algorithm could not handle it.

H3Polygon

Region operations that convert between GeoPolygon shapes and sets of H3 cells. All coordinates are in degrees.

Structs

CoordIJ

Local IJ coordinates of a cell relative to an anchoring origin cell.

H3DirectedEdge

A 64-bit H3 directed-edge index, identifying one of the directed boundary edges from an origin cell to one of its neighbors. All public coordinates exposed through its members are in degrees.

H3Index

A 64-bit H3 cell index. This is the primary handle for an H3 cell; all public coordinates exposed through its members are in degrees.

H3Vertex

A 64-bit H3 vertex index, identifying one of the topological vertices shared by adjacent cells. All public coordinates exposed through its members are in degrees.

LatLng

A geographic coordinate expressed in degrees.

Enums

ContainmentMode

Containment predicate that selects which H3 cells of a given resolution are returned when filling a GeoPolygon via ToCellsExperimental(GeoPolygon, int, ContainmentMode).