JTS.orthodromicDistance incorrectly calculate the equatorial radius of the earth

StackOverflow https://stackoverflow.com/questions/2378307

  •  24-09-2019
  •  | 
  •  

문제

JTS.orthodromicDistance(new Coordinate(0,0), new Coordinate(180,0), DefaultGeographicCRS.WGS84) * 2 is equal to 40075016 but must be equal to 6378000.

도움이 되었습니까?

해결책

You get what you asked for. Your formula calculates the circumference, which is 2*pi*radius.

The radius is circumference / (2*pi), indeed about 6378000.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top