[4.6.0] - 2026-11-18
Added
- Added
edgeToVertexesfunction, returning the two vertexes at the ends of a directed edge (#1071, #421, #1272) - Added
reverseDirectedEdgeto H3 CLI. (#1252) - Added
isValidIndexto H3 CLI (#1251) - Added NDJSON-file based test suite (#1230)
Changed
clang-formatupgraded to version 23. The version is now pinned indev-requirements.txtand can be installed withpip install -r dev-requirements.txt. (#1319)- Added internal Gosper island iterator (#1098, #1215)
- Test coverage improvements (#1183, #1184, #1185, #1186, #1192, #1193, #1194, #1195, #1196, #1207, #1210, #1214)
- All website dependencies are marked as
devDependenciesas they are not part of the C build process (#1206) - Added 32 bit Linux builds to CI (#1237)
- Replace the retired macos-14 CI runner with macos-15-intel (#1292)
Fixed
- Fixed
maxPolygonToCellsSizeExperimentaltaking unbounded time on very thin or degenerate polygons (for example, all vertices on the same latitude): the size estimate now also coarsens its working resolution based on the longest side of the bounding box, not only its area - Fixed precision loss in
cellAreaRads2,cellAreaKm2andcellAreaM2for cells crossing the antimeridian: the longitude difference of an edge across ±180° was close to 2π, so the tiny true step was lost to rounding and cells at resolution 12 and finer came out up to several percent too small. Both longitudes are now shifted to the same side of the antimeridian before subtracting - Fixed an out of bounds write in
gridRingwhen passed a negativek(#1235) - Avoid signed integer overflow when accumulating vertex counts in
maxPolygonToCellsSize(#1204, #1231) - Fixed the
polygonToCellsfuzzer regression test to use explicit double literals instead of reinterpreting raw bytes, so it is portable across endianness (#964, #1182) - No longer emit a CMake warning about a missing
clang-format/clang-tidywhen the user explicitly setENABLE_FORMAT=OFF/ENABLE_LINTING=OFF(#1158, #1191) - Fixed an out of bounds read in
_baseCellToCCWrot60when passed a face index equal toNUM_ICOSA_FACES(#978, #1224) - Fixed the
stringToIntCLI subcommand truncating 16 digit indexes, such as directed edges and vertexes (#1243) - Fixed the
gridDistanceCLI subcommand printing the distance in hexadecimal instead of decimal (#1244) - Fixed
cellToLatLngandcellToBoundarylosing precision in latitude near the poles; the worst error is now within a few units in the last place everywhere instead of growing as1/cos(latitude)(#1255) - Fixed
cellAreaM2CLI test not setting the C locale (#1176) - Clamp polygon bbox latitudes to the valid sphere range, fixing
polygonToCellsExperimentalspending a long time on tiny input (#1226) - Fixed
clang-tidydeprecated setting error (#1216) - Fixed possible signed integer overflow in
uncompactCellsSize(#1205) - Fixed incorrect test suite names (#1294)
- Fixed CLI exiting with status 0 when an arguments could not be parsed (unknown argument, missing required argument, missing or unparseable value). (#1300, #1312)
- Initialized
dirFacesinvertexRotationsto silence a-Wmaybe-uninitializedwarning on some compilers/toolchains (#458, #582, #1273)