OmniSciDB
a5dc49c757
|
Functions | |
EXTENSION_NOINLINE H3Index H3_EXPORT() | h3ToParent (H3Index h, int parentRes) |
returns the parent (or grandparent, etc) hexagon of the given hexagon More... | |
Functions for h3ToParent
EXTENSION_NOINLINE H3Index H3_EXPORT() h3ToParent | ( | H3Index | h, |
int | parentRes | ||
) |
returns the parent (or grandparent, etc) hexagon of the given hexagon
Returns the H3 resolution of an H3 index.
h | The H3 index. |
Note: Technically works on H3 edges, but will return base cell of the origin cell.
h | The H3 cell. |
str | The string representation of an H3 index. |
h | The H3 index to convert. |
str | The string representation of the H3 index. |
sz | Size of the buffer str Returns whether or not an H3 index is a valid cell (hexagon or pentagon). |
h | The H3 index to validate. |
hp | The H3 index to initialize. |
res | The H3 resolution to initialize the index to. |
baseCell | The H3 base cell to initialize the index to. |
initDigit | The H3 digit (0-7) to initialize all of the index digits to. h3ToParent produces the parent index for a given H3 index |
h | H3Index to find parent of |
parentRes | The resolution to switch to (parent, grandparent, etc) |
Definition at line 144 of file h3Index.hpp.
References H3_DIGIT_MASK, H3_GET_RESOLUTION, H3_NULL, H3_SET_INDEX_DIGIT, H3_SET_RESOLUTION, H3Index, and MAX_H3_RES.