Skip to content

H3_CELL_TO_POINT

Returns the GEOGRAPHY point that is the centroid of an H3 cell.

Syntax

sql
H3_CELL_TO_POINT(<cell>)

Arguments

  • <cell>: A BIGINT representing the H3 cell ID.

Returns

A GEOGRAPHY point representing the centroid of the passed in cell.

Example

sql
SELECT h3_cell_to_point(h3_hexstring_to_cell('83754efffffffff'));
-- POINT(0.23005 0.4159)