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

Creates a 2D, 3D Z or 4D ZM Point geometry. Use [ST\_MakePointM](/reference/wherobots-db/geometry-data/constructors/ST_MakePointM) to make points with XYM coordinates. Z and M values are optional.

## Signatures

```sql theme={"system"}
ST_MakePoint (X: Double, Y: Double, Z: Double, M: Double)
```

## Parameters

<ParamField body="X" type="Double" required>
  The X coordinate (longitude).
</ParamField>

<ParamField body="Y" type="Double" required>
  The Y coordinate (latitude).
</ParamField>

<ParamField body="Z" type="Double" required>
  The Z coordinate (elevation).
</ParamField>

<ParamField body="M" type="Double" required>
  The M coordinate (measure).
</ParamField>

## Return type

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

## Examples

```sql theme={"system"}
SELECT ST_AsText(ST_MakePoint(1.2345, 2.3456));
```

```
POINT (1.2345 2.3456)
```

```sql theme={"system"}
SELECT ST_AsText(ST_MakePoint(1.2345, 2.3456, 3.4567));
```

```
POINT Z (1.2345 2.3456 3.4567)
```

```sql theme={"system"}
SELECT ST_AsText(ST_MakePoint(1.2345, 2.3456, 3.4567, 4));
```

```
POINT ZM (1.2345 2.3456 3.4567 4)
```
