Skip to main content

ST_POINT

Description​

With the given X coordinate value, the Y coordinate value returns the corresponding Point.

The current value is only meaningful in the sphere set, X/Y corresponds to longitude/latitude;

Syntax​

ST_Point( <x>, <y>)

Parameters​

ParametersInstructions
<x>x-coordinate
<y>y-coordinate

Return Value​

Given horizontal coordinate and vertical coordinate corresponding position information

Examples​

SELECT ST_AsText(ST_Point(24.7, 56.7));
+---------------------------------+
| st_astext(st_point(24.7, 56.7)) |
+---------------------------------+
| POINT (24.7 56.7) |
+---------------------------------+