> ## 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 Geography LineString from two Point, MultiPoint, or LineString geographies. Its edges are interpreted as great-circle arcs by Geography measurement functions.

## Signatures

```sql theme={"system"}
ST_MakeLine(geog1: Geography, geog2: Geography)
```

## Parameters

<ParamField body="geog1" type="Geography" required>The first geography.</ParamField>
<ParamField body="geog2" type="Geography" required>The second geography.</ParamField>

## Return type

<ResponseField type="Geography">A Geography LineString.</ResponseField>

Only the two-argument signature accepts Geography inputs. The output copies the first input's SRID.

## Example

```sql theme={"system"}
SELECT ST_AsText(ST_MakeLine(
  ST_GeogFromWKT('POINT (0 0)', 4326),
  ST_GeogFromWKT('POINT (1 0)', 4326)
))
```

```text theme={"system"}
LINESTRING (0 0, 1 0)
```
