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

3 Ansichten (letzte 30 Tage)
Ray Lee
Ray Lee am 27 Nov. 2014
Kommentiert: Trung Ngo am 23 Mai 2019
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?

Akzeptierte Antwort

Kelly Kearney
Kelly Kearney am 27 Nov. 2014
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 Kommentar
Trung Ngo
Trung Ngo am 23 Mai 2019
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);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by