Skip to main content
Version: 3.0

ST_Point

Description

Returns the corresponding Point with the given X-coordinate and Y-coordinate. At the moment this value only makes sense on a spherical set. X/Y corresponds to longitude/latitude.

Caution

If you directly select ST_Point(), it may get stuck.

Syntax

POINT ST_Point(DOUBLE x, DOUBLE y)

Examples

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

keyword

ST_POINT,ST,POINT