snowflake.snowpark.functions.h3_polygon_to_cells¶
- snowflake.snowpark.functions.h3_polygon_to_cells(geography_polygon: Union[snowflake.snowpark.column.Column, str], target_resolution: Union[snowflake.snowpark.column.Column, str]) Column[source]¶
Returns the H3 cell IDs contained by the input polygon at the specified resolution.
- Parameters:
geography_polygon (ColumnOrName) – A GEOGRAPHY object representing a polygon.
target_resolution (ColumnOrName) – The H3 resolution (0-15).
- Returns:
An array of H3 cell IDs as integers.
- Return type:
- Example::