跳转到内容

构造表示具有指定经度和纬度的 Point 的 GEOMETRY 对象。

ST_MAKEGEOMPOINT(<longitude>, <latitude>)
参数 说明
<longitude> 表示经度的 Double 值。
<latitude> 表示纬度的 Double 值。

Geometry。

SELECT
ST_MAKEGEOMPOINT(
7.0, 8.0
) AS pipeline_point;
┌────────────────┐
│ pipeline_point │
├────────────────┤
│ POINT(7 8) │
└────────────────┘
SELECT
ST_MAKEGEOMPOINT(
-122.3061, 37.554162
) AS pipeline_point;
┌────────────────────────────┐
│ pipeline_point │
├────────────────────────────┤
│ POINT(-122.3061 37.554162) │
└────────────────────────────┘