snowflake.snowpark.functions.st_pointn¶
- snowflake.snowpark.functions.st_pointn(geography_or_geometry_expression: Union[snowflake.snowpark.column.Column, str], index: Union[snowflake.snowpark.column.Column, str]) Column[source]¶
Returns the Nth point in a LINESTRING. Points are indexed starting from 1. Negative values are counted backwards from the end of the LINESTRING, where -1 is the last point.
- Parameters:
geography_or_geometry_expression (ColumnOrName) – LINESTRING values in GEOGRAPHY or GEOMETRY format
index (ColumnOrName) – The 1-based index of the point to return. Negative values count from the end
- Returns:
The Nth point as a POINT object
- Return type:
- Examples::