Skip to main content
Preview Snowflake geospatial functions in Snowflake compatibility mode.

Limitations

A GEOGRAPHY renders as WKB hex, where Snowflake renders GeoJSON. The shape is the same, but a client reading the output text sees something different. ST_ASTEXT and ST_ASGEOJSON return the same text in both systems and are the portable way to read one. Coordinates are quantized when a geography is built, so a value does not necessarily come back unchanged: ST_X(TO_GEOGRAPHY('POINT(1 2)')) returns 0.9999999999999998 here and 1 in Snowflake. This matters for an equality test on a coordinate, and not for a distance or a containment check. The H3_* family and the geometry (planar) functions have no equivalent; see Data types for why GEOMETRY is not supported.