

 Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/) that was published on June 30, 2025. 

# ST\_MakePoint
<a name="ST_MakePoint-function"></a>

ST\_MakePoint returns a point geometry whose coordinate values are the input values. 

## Syntax
<a name="ST_MakePoint-function-syntax"></a>

```
ST_MakePoint(x, y)
```

```
ST_MakePoint(x, y, z)
```

```
ST_MakePoint(x, y, z, m)
```

## Arguments
<a name="ST_MakePoint-function-arguments"></a>

 *x*   
A value of data type `DOUBLE PRECISION` representing the first coordinate. 

 *y*   
A value of data type `DOUBLE PRECISION` representing the second coordinate. 

 *z*   
A value of data type `DOUBLE PRECISION` representing the third coordinate. 

 *m*   
A value of data type `DOUBLE PRECISION` representing the fourth coordinate. 

## Return type
<a name="ST_MakePoint-function-return"></a>

`GEOMETRY` of subtype `POINT`. 

The spatial reference system identifier (SRID) value of the returned geometry is set to 0. 

If *x*, *y*, *z*, or *m* is null, then null is returned. 

## Examples
<a name="ST_MakePoint-function-examples"></a>

The following SQL returns a `GEOMETRY` type of subtype `POINT` with the provided coordinates. 

```
SELECT ST_AsText(ST_MakePoint(1,3));
```

```
st_astext
-----------
 POINT(1 3)
```

The following SQL returns a `GEOMETRY` type of subtype `POINT` with the provided coordinates. 

```
SELECT ST_AsEWKT(ST_MakePoint(1, 2, 3));
```

```
st_asewkt
----------------
 POINT Z (1 2 3)
```

The following SQL returns a `GEOMETRY` type of subtype `POINT` with the provided coordinates. 

```
SELECT ST_AsEWKT(ST_MakePoint(1, 2, 3, 4));
```

```
st_asewkt
-------------------
 POINT ZM (1 2 3 4)
```