ST_Point

更新时间:
复制 MD 格式

Constructs a 2D point geometry from x and y coordinates.

Syntax

geometry ST_Point(float xLon, float yLat)

Parameters

ParameterTypeDescription
xLonfloatThe x-coordinate (longitude) of the point.
yLatfloatThe 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