# LineString Properties

- [ENDPOINT](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/linestring-properties-endpoint.md): Synonym for ST\_ENDPOINT. Returns the last point of a LineString geometry.
- [GLENGTH](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/glength.md): Synonym for ST\_LENGTH. Calculates the length of a LineString or MultiLineString in its associated spatial reference units.
- [NumPoints](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/linestring-properties-numpoints.md): Synonym for ST\_NUMPOINTS. Returns the number of points in a LineString geometry.
- [PointN](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/linestring-properties-pointn.md): Synonym for ST\_POINTN. Returns the N-th point in a LineString geometry, where N is a 1-based index.
- [STARTPOINT](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/linestring-properties-startpoint.md): Synonym for ST\_STARTPOINT. Returns the first point of a LineString geometry.
- [ST\_ENDPOINT](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/st_endpoint.md): Returns the end Point of a LineString. This function retrieves the final coordinate in the linear geometry sequence.
- [ST\_NUMPOINTS](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/st_numpoints.md): Returns the count of Points in a LineString. This function calculates the total number of vertices defining the line.
- [ST\_POINTN](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/st_pointn.md): Returns the N-th Point in a LineString. This function retrieves a specific point from the sequence based on its 1-based index.
- [ST\_STARTPOINT](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties/st_startpoint.md): Returns the start Point of a LineString. This function retrieves the initial coordinate in the linear geometry sequence.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/linestring-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
