How to get the points of [lat, lon] of a full great circle?

조회 수: 2 (최근 30일)
Ray Lee
Ray Lee 2014년 11월 27일
댓글: Trung Ngo 2019년 5월 23일
the matlab function gcwaypts generates points on the short arc of the great circle across two given points.
How to get the full great circle?

채택된 답변

Kelly Kearney
Kelly Kearney 2014년 11월 27일
I would use a combination of azimuth, gc2sc, and scircle1:
az = azimuth(lat1, lon1, lat2, lon2)
[lat, lon, r] = gc2sc(lat1, lon1, az)
[latc, lonc] = scircle1(lat, lon, r)
  댓글 수: 1
Trung Ngo
Trung Ngo 2019년 5월 23일
Hi Miss Kearney,
Between gcwaypts, track2 and your method. Which one is more preferable. I am doing this which take account of the ellipsoid.
[GClat_check,GClon_check]=track2('gc',startLat,startLon,endLat,endLon,referenceEllipsoid(7030),'degree',51);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by