Signatures
Parameters
The cell ids value.
Return type
The resulting geometry.
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.ST_S2ToGeom(cellIds: Array[Long])
SELECT ST_S2ToGeom(array(11540474045136890))
[POLYGON ((-36.609392788630245 -38.169532607255846, -36.609392706252954 -38.169532607255846, -36.609392706252954 -38.169532507473015, -36.609392788630245 -38.169532507473015, -36.609392788630245 -38.169532607255846))]
Was this page helpful?