Skip to main content
Return the result of H3 function cellsToMultiPolygon(cells). Converts an array of Uber H3 cell indices into an array of Polygon geometries, where each polygon represents a hexagonal H3 cell.
To convert a Polygon array to MultiPolygon, use ST_Collect. However, the result may be an invalid geometry. Apply ST_MakeValid to the ST_Collect output to ensure a valid MultiPolygon.An alternative approach to consolidate a Polygon array into a Polygon/MultiPolygon, use the ST_Union function.

Signatures

Parameters

cells
Array[Long]
required
The cells value.

Return type

The resulting geometry.

Example

ST_H3ToGeom