GEOGRAPHY
GEOGRAPHY data type and usages
Last updated
GEOGRAPHY data type and usages
Last updated
A collection of points, linestrings, and polygons, which is represented as a point set, or a subset of the surface of the Earth. For more information please refer to.
Supported data type in Snowflake.
The default output format for geography data types in BigQuery is WKT (Well-Known Text) and in Snowflake WKB (Well-Known Binary). For this reason, when geography columns are selected, the function is automatically added. In addition, when all the columns of a table are selected and it contains a Geography column, the is set to WKT. This is in order to keep the default BigQuery format.
In case it is not added automatically and you want to see the data in WKT format, you can use the function or set the format.
To insert data in geography type columns, no function is needed, because Snowflake automatically detects that the data follows the .
Please keep in mind that the default output format for geography data types is WKT (Well-Known Text) and in Snowflake WKB (Well-Known Binary). You can use the function or set the format if you want to view the data in WKT format.
Geography functions used to insert data into a values clause are not needed in Snowflake. Please refer to documentation to learn more about this.
: Geography function is not required in Snowflake.