PostgreSQL's ST_Distance_Sphere function calculates the distances on earth:
float ST_Distance_Sphere(geometry pointlonlatA, geometry pointlonlatB);In its documentation, there is a peculiar note:
Why does ST_Distance_Sphere uses WGS 80? Should I expect any significant error due to the coordinate system difference?
أكثر...
float ST_Distance_Sphere(geometry pointlonlatA, geometry pointlonlatB);In its documentation, there is a peculiar note:
This function currently does not look at the SRID of a point geometry and will always assume its in WGS 80 long lat.
My geometries are stored in WGS 84, which seems to be the de-facto standard for storing geospatial entities in PostgreSQL, an the reference coordinate system used by the GPS system.
Why does ST_Distance_Sphere uses WGS 80? Should I expect any significant error due to the coordinate system difference?
أكثر...