Appearance
H3_CELL_TO_BOUNDARY
Returns the GEOGRAPHY object representing the boundary of an H3 cell.
Syntax
sql
H3_CELL_TO_BOUNDARY(<cell>)Arguments
<cell>: ABIGINTrepresenting the H3 cell ID.
Returns
A GEOGRAPHY representing the hexagonal boundary of the passed in cell.
Example
sql
SELECT h3_cell_to_boundary(h3_point_to_cell('POINT(0 0)'::geography, 3));
-- POLYGON((0.62438 0.10878,0.71427 0.6752,0.32018 0.97879,-0.1602 0.7198,-0.25087 0.15833,0.1396 -0.14908,0.62438 0.10878))