10000 Unexpected zero J-coordinate in local ijk+ when resolution > 0 · Issue #1003 · uber/h3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unexpected zero J-coordinate in local ijk+ when resolution > 0 #1003
Open
@valenadels

Description

@valenadels

Hi! I’m using H3 to assign local ijk+ coordinates to cells around a given origin.
At resolution 0, the six direct neighbors of the origin 0x8075FFFFFFFFFFF are:

(1, 0, 1)
(1, 0, 0)
(0, 1, 0)
(0, 1, 1)
(1, 1, 0)

However, when increasing resolution, for example to 2 (origin 0x82754FFFFFFFFFF), the output is:

(3, 0, 2)
(2, 0, 2)
(2, 0, 3)
(3, 0, 4)
(4, 0, 4)
(4, 0, 3)

I expected (acording to the image bellow) some of the neighbors to have a non-zero j component, but it’s always zero.

Image

(I'm using H3 version: v4.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0