

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, 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/). 

# ST\$1MakePoint
<a name="ST_MakePoint-function"></a>

ST\$1MakePoint 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)
```