Skip to main content

ST_MAKEPOINT

Introduced or updated: v1.2.347

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

Syntax​

ST_MAKEPOINT(<longitude>, <latitude>)

Aliases​

Arguments​

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

Return Type​

Geography.

Examples​

SELECT
ST_ASWKT(
ST_MAKEPOINT(
7.0, 8.0
)
) AS pipeline_point;

┌────────────────┐
│ pipeline_point │
├────────────────┤
│ POINT(7 8) │
└────────────────┘

SELECT
ST_ASWKT(
ST_MAKEPOINT(
-122.3061, 37.554162
)
) AS pipeline_point;

╭────────────────────────────╮
│ pipeline_point │
├────────────────────────────┤
│ POINT(-122.3061 37.554162) │
╰────────────────────────────╯
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today