Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

GEOGRAPHY_LONGITUDE

The GEOGRAPHY_POINT() function extracts the longitude portion of a GeographyPoint.

Syntax

GEOGRAPHY_LONGITUDE ( point )

Arguments

  • Any valid GeographyPoint or WKT string.

Return Type

A float of the longitude value. If the object is invalid or not a point (say a path or polygon), returns NULL.

Examples

SELECT GEOGRAPHY_LONGITUDE("POINT(-73.94990499 40.69150746)") AS lon;
+--------------------+
| lon                |
+--------------------+
| -73.94990499066743 |
+--------------------+

For more information about working with geospatial data, see Working with Geospatial Features.

Last modified:

Was this article helpful?