ST_ENDPOINT
functionsupportedCore SQL functionsReturns the last Point in a LineString.
Syntax
ST_ENDPOINT( <geography_or_geometry_expression> )
Parameters
| Name | Required | Description |
|---|---|---|
geography_or_geometry_expression | required | The argument must be an expression of type GEOGRAPHY or GEOMETRY that represents a LineString. |
Returns
The function returns a value of type GEOGRAPHY or GEOMETRY that contains the last Point of the specified LineString.
Usage notes
- If geography_or_geometry_expression is not a LineString, the function reports an error.