- Categories:
ST_ENDPOINT¶
Returns the last Point in a LineString.
- See also:
Syntax¶
Arguments¶
geography_or_geometry_expressionThe 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_expressionis not a LineString, the function reports an error.
Examples¶
GEOGRAPHY examples¶
The following query returns the last Point in a LineString:
GEOMETRY examples¶
The following query returns the last Point in a LineString: