uber / h3

Hexagonal hierarchical geospatial indexing system
https://h3geo.org
Apache License 2.0
4.84k stars 459 forks source link

Documentation: Add edge size for each cell resolution #713

Closed Zeroto521 closed 1 year ago

Zeroto521 commented 1 year ago

I have seen the documentation about the resolution (https://h3geo.org/docs/core-library/restable). There have cell stats about counts, and areas. I would like to add edge size information for resolution.

An example for the Average area in km2 section.

Res Average Hexagon Area (km2) Average Hexagon Edge Size (km) Pentagon Area (km2) Average Pentagon Edge Size (km) Ratio (P/H)
0 4,357,449.416078380 1,295.061026452 2,562,182.162955490 1,220.339069565 0.588
1 609,788.441794133 484.466387564 328,434.586246469 436.918019382 0.539
2 86,801.780398997 182.784082603 44,930.898497879 161.602496466 0.518
3 12,393.434655088 69.066889483 6,315.472267516 60.586857894 0.510
4 1,770.347654491 26.103776162 896.582383141 22.828144580 0.506
5 252.903858182 9.866242466 127.785583023 8.618197516 0.505
6 36.129062164 3.729086015 18.238749548 3.255914889 0.505
7 5.161293360 1.409461862 2.604669397 1.230415568 0.505
8 0.737327598 0.532726501 0.372048038 0.465023631 0.505
9 0.105332513 0.201351690 0.053147195 0.175758237 0.505
10 0.015047502 0.076103786 0.007592318 0.066429764 0.505
11 0.002149643 0.028764526 0.001084609 0.025108000 0.505
12 0.000307092 0.010871972 0.000154944 0.009489928 0.505
13 0.000043870 0.004109206 0.000022135 0.003586867 0.505
14 0.000006267 0.001553116 0.000003162 0.001355678 0.505
15 0.000000895 0.000586929 0.000000452 0.000512560 0.505

via formula

Also related to #240

Zeroto521 commented 1 year ago

This is done in #712