snowflake.snowpark.functions.st_centroid¶
- snowflake.snowpark.functions.st_centroid(geography_or_geometry_expression: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.45.0/src/snowflake/snowpark/_functions/scalar_functions.py#L2289-L2313)¶
Returns the centroid of a GEOGRAPHY or GEOMETRY object as a POINT object.
- Parameters:
geography_or_geometry_expression (ColumnOrName) – A GEOGRAPHY or GEOMETRY object
- Returns:
A POINT object representing the centroid of the input geometry
- Return type:
- Examples::