OmniSciDB
a5dc49c757
|
Functions | |
EXTENSION_NOINLINE int64_t H3_EXPORT() | h3ToGeoPacked (H3Index h3) |
find the lat/lon center point g of the cell h3 More... | |
EXTENSION_NOINLINE double H3_EXPORT() | h3ToLon (H3Index h3) |
EXTENSION_NOINLINE double H3_EXPORT() | h3ToLat (H3Index h3) |
Functions for h3ToGeo
EXTENSION_NOINLINE int64_t H3_EXPORT() h3ToGeoPacked | ( | H3Index | h3 | ) |
find the lat/lon center point g of the cell h3
Determines the WGS84 lat/lon coordinates of the center point of an H3 index packed into a 9.22 fixed-point value. This allows 6 decimal places of precision, which equates to a maximum error of 111.32 millimeters at the equator.
To unpack: lon = ((packed_int & 0xffffffff) / 1000000.0) - 180.0 lat = ((packed_int >> 32) / 1000000.0) - 90.0
h3 | The H3 index. |
Definition at line 853 of file h3Index.hpp.
References _h3ToGeo(), GeoCoord, LAT_INDEX, LON_INDEX, and radsToDegs().
EXTENSION_NOINLINE double H3_EXPORT() h3ToLat | ( | H3Index | h3 | ) |
Determines the WGS84 longitude coordinate of the center point of an H3 index.
h3 | The H3 index. |
Definition at line 887 of file h3Index.hpp.
References _h3ToGeo(), GeoCoord, LAT_INDEX, and radsToDegs().
EXTENSION_NOINLINE double H3_EXPORT() h3ToLon | ( | H3Index | h3 | ) |
Determines the WGS84 longitude coordinate of the center point of an H3 index.
h3 | The H3 index. |
Definition at line 875 of file h3Index.hpp.
References _h3ToGeo(), GeoCoord, LON_INDEX, and radsToDegs().