Repository navigation
Cell stats tables and hard-coded values - #529
Conversation
nrabinowitz
left a comment
There was a problem hiding this comment.
A few small notes, but this looks great! Thanks for taking this on.
| | 14 | 0.000006267 | 0.000003162 | 0.5046 | | ||
| | 15 | 0.000000895 | 0.000000452 | 0.5046 | | ||
|
|
||
| *: Within a given resolution, all pentagons have the same area. |
There was a problem hiding this comment.
Not sure you need to restate this - I'd keep either here or above but doubt you need both.
There was a problem hiding this comment.
I don't see much cost to keeping both; it's only one line. And I don't see a quicker, cleaner way to explain the difference in table headers where hexagons get "Average" but pentagons don't (that also catches the use case of users jumping directly to the table they care about and ignoring everything else).
For the purpose of getting this diff landed, I'll keep it as is, but I also wouldn't mind if anyone put up an alternative proposal. :)
| | 14 | 6.267 | 3.162 | | ||
| | 15 | 0.895 | 0.452 | | ||
|
|
||
| *: Within a given resolution, all pentagons have the same area. |
There was a problem hiding this comment.
Did you really need to say that again? ;)
| [WGS84](https://en.wikipedia.org/wiki/WGS84)/[EPSG:4326](https://epsg.io/4326). | ||
| ::: | ||
|
|
||
| TODO |
There was a problem hiding this comment.
Do we want to keep the TODOs here, or leave/comment the sections out? This seems a little odd in published docs.
There was a problem hiding this comment.
I'm only changing the 4.0 docs in this diff, which aren't the ones surfaced to users by default. In that sense, I'm considering the 4.0 docs a work in progress, so I'm not too bothered by obvious TODO sections that'll hopefully remind us to fill those out before finalizing the 4.0 docs.
The H3 C library fork (github.com/ClickHouse/h3) was on v3.7.1 with 2 ClickHouse-specific range-check patches. Upstream H3 v4 already includes equivalent validation in `_h3ToFaceIjk`, so the patches are no longer needed. Created a clean `clickhouse-v4` branch in the fork at upstream tag v4.4.1 with no additional patches. This fixes two known bugs in the v3 lookup tables: - Average hexagon edge lengths were actually inradii (apothems), not edge lengths (uber/h3#201, fixed in uber/h3#749) - Average hexagon areas naively divided Earth surface by total cell count without excluding pentagon areas (fixed in uber/h3#529) The v4 API changed most functions to return `H3Error` with results via output parameters. Updated all 27 wrapper files in `src/Functions/` to use the new calling convention. Also updated function renames: `exactEdgeLengthM` → `edgeLengthM`, `distanceM` → `greatCircleDistanceM`, etc. Updated 11 test reference files to reflect the corrected values. Reference: #100272 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Starting to address issues raised in:
Based on work in uber/h3-py-notebooks#8