SSC-EWI-TD0069
ST_DISTANCE results are slightly different from ST_SPHERICALDISTANCE
Severity
Description
Example Code
Input Code:
--The distance between New York and Los Angeles
Select Cast('POINT(-73.989308 40.741895)' As ST_GEOMETRY) As location1,
Cast('POINT(40.741895 34.053691)' As ST_GEOMETRY) As location2,
location1.ST_SPHERICALDISTANCE(location2) As Distance_In_km;Output Code
Recommendations
Last updated
