Uncompact a set of H3 indices

Supported in: Batch, Streaming

Uncompact H3 indices to the specified resolution. All input indices must be at a resolution less than or equal to the requested resolution or this transform will return null. If any of the input indices are invalid this transform will return null. Output indices are sorted in ascending order.

Expression categories: Geospatial

Declared arguments

  • H3 set - Set of H3 cells.
    Expression<Array<H3 Index>>
  • Resolution - H3 grid resolution between 0 and 15 (inclusive).
    Expression<Byte | Integer | Long | Short>

Output type: Array<H3 Index>

Examples

Example 1: Base case

Argument values:

  • H3 set: h3_set
  • Resolution: resolution
h3_setresolutionOutput
[ 86754e64fffffff, 87754a914ffffff, 87754a916ffffff, 87754a930ffffff, 87754a932ffffff, 87754a933ffff...7[ 87754a914ffffff, 87754a916ffffff, 87754a930ffffff, 87754a932ffffff, 87754a933ffffff, 87754a934ffff...

Example 2: Null case

Argument values:

  • H3 set: h3_set
  • Resolution: resolution
h3_setresolutionOutput
null7null
[ 86754e64fffffff, 87754a914ffffff, 87754a916ffffff, 87754a930ffffff, 87754a932ffffff, 87754a933ffff...nullnull
nullnullnull

Example 3: Edge case

Argument values:

  • H3 set: h3_set
  • Resolution: resolution
h3_setresolutionOutput
[ 87754e648ffffff, 87754e648ffffff ]7[ 87754e648ffffff ]

Example 4: Edge case

Argument values:

  • H3 set: h3_set
  • Resolution: resolution
h3_setresolutionOutput
[ 87754e648ffffff ]7[ 87754e648ffffff ]

Example 5: Edge case

Argument values:

  • H3 set: h3_set
  • Resolution: resolution
h3_setresolutionOutput
[ 87754e648ffffff ]6null

Example 6: Edge case

Argument values:

  • H3 set: h3_set
  • Resolution: resolution
h3_setresolutionOutput
[ Invalid h3 index ]7null