> ## 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_MakeLine

Creates a LineString containing the points of Point, MultiPoint, or LineString geometries. Other geometry types cause an error.

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

## Signatures

```sql theme={"system"}
ST_MakeLine(geom1: Geometry, geom2: Geometry)
```

```sql theme={"system"}
ST_MakeLine(geoms: ARRAY[Geometry])
```

## Parameters

<ParamField body="geom1" type="Geometry">
  The geom1 value.
</ParamField>

<ParamField body="geom2" type="Geometry">
  The geom2 value.
</ParamField>

<ParamField body="geoms" type="ARRAY[Geometry]">
  The geoms value.
</ParamField>

## Return type

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

## Examples

```sql theme={"system"}
SELECT ST_AsText( ST_MakeLine(ST_Point(1,2), ST_Point(3,4)) );
```

```
LINESTRING(1 2,3 4)
```

```sql theme={"system"}
SELECT ST_AsText( ST_MakeLine( 'LINESTRING(0 0, 1 1)', 'LINESTRING(2 2, 3 3)' ) );
```

```
 LINESTRING(0 0,1 1,2 2,3 3)
```
