snowflake.snowpark.functions.h3_cell_to_boundary

snowflake.snowpark.functions.h3_cell_to_boundary(cell_id: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.40.0/src/snowflake/snowpark/_functions/scalar_functions.py#L515-L532)

Returns the boundary of an H3 cell as a GeoJSON polygon.

Parameters:

cell_id (ColumnOrName) – The H3 cell IDs.

Returns:

The boundary of the H3 cell as a GeoJSON polygon string.

Return type:

Column

Example::
>>> df = session.create_dataframe([613036919424548863, 577023702256844799], schema=["cell_id"])
>>> result = df.select(h3_cell_to_boundary(df["cell_id"]).alias("boundary")).collect()
>>> len(result) == 2
True
Copy
Language: English