35.40 SDO_UTIL.H3_NUM_CELLS

Format

SDO_UTIL.H3_NUM_CELLS(
  resolution IN NUMBER
) RETURN NUMBER;

Description

Returns the number of H3 cells covering the Earth at the specified resolution.

Parameters

resolution

The H3 level to query.

Usage Notes

Includes pentagons and hexagons. At each resolution 12 cells are pentagons and the rest are hexagons.

Examples

The following example computes the number of base cells:

SELECT SDO_UTIL.H3_NUM_CELLS(0) FROM DUAL;
122