跳到主要内容

ST_MAKEGEOMPOINT

Introduced or updated: v1.2.347

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

Syntax

ST_MAKEGEOMPOINT(<longitude>, <latitude>)

Aliases

Arguments

ArgumentsDescription
<longitude>A Double value that represents the longitude.
<latitude>A Double value that represents the latitude.

Return Type

Geometry.

Examples

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)
└────────────────────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册