uber / h3

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

Error in testCellsToLinkedMultiPolygon/gridDiskResolutions? #704

Closed grim7reaper closed 1 year ago

grim7reaper commented 1 year ago

Since the test use a 2-disks, I think that numHexes should be 19 (instead of 7), and thus countLinkedCoords would be 30.

Or am I misunderstanding something?

nrabinowitz commented 1 year ago

That... is completely correct. We were only taking the first 7 cells in the gridDisk output, which only represent the 1-disk, not the 2-disk. So the test was still working, but we weren't actually testing the full 2-disk. Thanks for the report!