ST_ASGEOJSON

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Given a value of type GEOGRAPHY or GEOMETRY, return the GeoJSON representation of that value.

Syntax

ST_ASGEOJSON( <geography_or_geometry_expression> )

Parameters

NameRequiredDescription
geography_or_geometry_expressionrequiredThe argument must be an expression of type GEOGRAPHY or GEOMETRY.

Returns

An OBJECT in GeoJSON format.

Usage notes