I'm encountering a strange problem with PostGIS's ST_Length_Spheroid function seemingly returning linear distance of a linestring when not on the equator.
I started by measuring the length of a line of latitude around the equator:
SELECT ST_Length_Spheroid(ST_GeomFromText('LINESTRING(180 0, 90 0, 0 0, -90 0, -180 0)', 4326), 'SPHEROID["GRS_1980",6378137,298.257222101]')/1000which resulted in the expected result of ~40,075 km.
I then tried the same thing, but at 40
أكثر...
I started by measuring the length of a line of latitude around the equator:
SELECT ST_Length_Spheroid(ST_GeomFromText('LINESTRING(180 0, 90 0, 0 0, -90 0, -180 0)', 4326), 'SPHEROID["GRS_1980",6378137,298.257222101]')/1000which resulted in the expected result of ~40,075 km.
I then tried the same thing, but at 40
أكثر...