Appearance
ST_POINT
Creates a GEOGRAPHY point from given x (longitude) and y (latitude) coordinates.
See also:
Syntax
sql
ST_POINT(<x>, <y>)Arguments
<x>: AFLOAT8orFLOAT4value representing the longitude<y>: AFLOAT8orFLOAT4value representing the latitude
Returns
Returns a GEOGRAPHY object of subtype ST_Point.
Example
sql
SELECT ST_AsText(ST_POINT(1, 1));
-- 'POINT(1 1)'