h3 icon indicating copy to clipboard operation
h3 copied to clipboard

customized resolution

Open mikehb opened this issue 1 year ago • 1 comments

I am sure if there is already discussion before about this feature, so I raise it here for discussion.

I have an application that needs to index the hexagon cells in different resolution, according to the latitude. On areas with low latitude, the edge length is about 2.0KM, while on areas with high latitude, the edge length is about 5.0KM. According the to H3 resolution table, resolution 5,6,7 is not what I want. Does the H3 library support customized resolution? Can I modify the code a bit for supporting this feature? image

mikehb avatar Sep 24 '24 03:09 mikehb

The short answer is: No. The fixed resolutions are a result of fundamental aspects of H3’s grid construction, and there’s no way to get a custom cell size. Some other discrete global grid systems do support this feature, but it’s not possible to implement in H3.

The closest we could offer is likely to use gridDisk with different radii at different latitudes.

nrabinowitz avatar Sep 24 '24 13:09 nrabinowitz