> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_LineFromMultiPoint

Creates a LineString from a MultiPoint geometry.

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_LineFromMultiPoint/ST_LineFromMultiPoint.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=892768f9b55f2ccba6bcb1c695752a29" alt="ST_LineFromMultiPoint" width="500" height="300" data-path="images/sql-functions/ST_LineFromMultiPoint/ST_LineFromMultiPoint.svg" />

## Signatures

```sql theme={"system"}
ST_LineFromMultiPoint (A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_LineFromMultiPoint(ST_GeomFromText('MULTIPOINT((10 40), (40 30), (20 20), (30 10))'))
```

```
LINESTRING (10 40, 40 30, 20 20, 30 10)
```
