I am trying to use the geometry data type and was wondering what the unit of the spatial functions will be. The documentation says as below. Is there a way I can pass a unit to the function. If not, how do i find out the unit
The measurement functions (e.g. ST_LENGTH) use the same units as the coordinate system
Thanks
I was surprised by the results, and the docs could be clearer.
With a
geography,st_length()returns the distance in meters, as described in the docs. For example, for a line between SF and a point 10km to the east:However, that's not what you get when you have a
geometrybetween the same points:So where does the 0.11 come from? Vertica says:
Same on PostGIS:
I'll notify our docs team so we make the necessary update on https://docs.snowflake.com/en/sql-reference/functions/st_length.html#returns.