ends_of

Returns the endpoints of a simple line geometry.

If the line is closed, the result will be a simple point geometry. Otherwise the result will be a complex geometry containing two points.

Parameter 1 - a simple line geometry.

Returns: a simple or complex point geometry containing the start and end of the line.

Note: This function does not currently fully support 3D geometries. Any 3D geometries will be projected down to 2 dimensions.