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
ST_MakePoint
ST_MakePoint returns a point geometry whose coordinate values are the input values.
Syntax
ST_MakePoint(x, y)
ST_MakePoint(x, y, z)
ST_MakePoint(x, y, z, m)
Arguments
- x
-
A value of data type
DOUBLE PRECISIONrepresenting the first coordinate. - y
-
A value of data type
DOUBLE PRECISIONrepresenting the second coordinate. - z
-
A value of data type
DOUBLE PRECISIONrepresenting the third coordinate. - m
-
A value of data type
DOUBLE PRECISIONrepresenting the fourth coordinate.
Return type
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
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)