This topic describes the ST_Point function. This function construct a point object by using coordinates.

Syntax

geometry  ST_Point(float  xLon , float  yLat);

Parameters

Parameter Description
xLon The x coordinate, which specifies the longitude of the point object.
yLat The y coordinate, which specifies the latitude of the point object.

Description

This function contains only the x and y coordinates. This function is equivalent to the ST_MakePoint function that is defined in the Open Geospatial Consortium (OGC) specification.

Examples

SELECT ST_AsText(ST_Point(116,40));
   st_astext
---------------
 POINT(116 40)
(1 row)