- Categories:
ST_MAKEPOINT , ST_POINTยถ
Constructs a GEOGRAPHY object that represents a point with the specified longitude and latitude.
- See also:
Syntaxยถ
ST_MAKEPOINT( <longitude> , <latitude> )
Argumentsยถ
longitude
A REAL that represents the longitude.
latitude
A REAL that represents the latitude.
Returnsยถ
The function returns a value of type GEOGRAPHY.
Usage notesยถ
ST_POINT is an alias for ST_MAKEPOINT.
Examplesยถ
This shows a simple use of the ST_MAKEPOINT function:
SELECT ST_MAKEPOINT(37.5, 45.5); +--------------------------+ | ST_MAKEPOINT(37.5, 45.5) | |--------------------------| | POINT(37.5 45.5) | +--------------------------+