About this project

go-rhealpix is a Go port of the rHEALPix Discrete Global Grid System, designed for high-performance spatial indexing and lossless spatial compaction of global geospatial datasets. It is particularly suited for satellite imagery telemetry, point clouds, and TileDB spatial dimensions. Key capabilities include: - Compact Integer Encoding: Supports CellID64 for resolutions 0-14 (down to ~2.09m) and CellID128 for resolutions 0-30 (down to ~0.028mm). - Spatial Compaction: A generic Compact[T] function to recursively collapse 3x3 cell blocks into parent cells. - Query Optimization: Provides BoundingBoxToTileDBRanges and KRingToTileDBRanges to enable O(log N) 1D range queries over space-filling curves for cloud storage (S3) and TileDB. - Vector Integration: Native conversion to and from orb geometries with boundary densification. The implementation focuses on the standard baseline rHEALPix configuration using a 3x3 aperture, WGS84 ellipsoid, and specific polar cap alignment.