Categories:

Geospatial functions

ST_MAKEGEOMPOINT、ST_GEOMPOINT

Constructs a GEOMETRY object that represents a Point with the specified longitude and latitude.

See also:

TO_GEOMETRY

语法

ST_MAKEGEOMPOINT( <longitude> , <latitude> )

实参

longitude

表示经度的 REAL。

latitude

表示纬度的 REAL。

返回

该函数返回 GEOMETRY 类型的值。

使用说明

  • ST_GEOMPOINT 是 ST_MAKEGEOMPOINT 的别名。

示例

For examples, see Examples comparing the GEOGRAPHY and GEOMETRY data types. The examples use the ST_GEOMPOINT alias.