ST_WGS84_DISTANCE
Calculates the distance between two WKT formatted points in meters in the WGS84 projection.
Syntax
Arguments
Name | Type | Description | Default Value |
---|---|---|---|
first | string | A WKT formatted Longitude Latitude point | |
second | string | A WKT formatted Longitude Latitude point |
Returns
Returns a double
value.
Examples
first | second | Output |
---|---|---|
'POINT (152.352298 -24.875975)' | 'POINT (151.960336 -24.993289)' | 41667.7298657432 |
Transformation job example
SQL
Query result
first | second | Output |
---|---|---|
'POINT (152.352298 -24.875975)' | 'POINT (151.960336 -24.993289)' | 41667.7298657432 |
Last updated