Constructs a 2D point geometry from x and y coordinates.
Syntax
geometry ST_Point(float xLon, float yLat)Parameters
| Parameter | Type | Description |
|---|---|---|
xLon | float | The x-coordinate (longitude) of the point. |
yLat | float | The y-coordinate (latitude) of the point. |
Description
ST_Point constructs a point object with x and y coordinates only. It is the Open Geospatial Consortium (OGC) standard equivalent of ST_MakePoint.
Examples
SELECT ST_AsText(ST_Point(116, 40));Output:
st_astext
---------------
POINT(116 40)
(1 row)See also
ST_MakePoint: Constructs a 2D, 3DZ, or 4D point object.