Questions tagged [great-circle]

A great circle of a sphere is the intersection of the sphere and a plane which passes through the center point of the sphere. Used in navigation to determine the shortest distance between two points on the globe.

A great circle, also known as an orthodrome or Riemannian circle, of a sphere is the intersection of the sphere and a plane which passes through the center point of the sphere. This partial case of a circle of a sphere is opposed to a small circle, the intersection of the sphere and a plane which does not pass through the center. Any diameter of any great circle coincides with a diameter of the sphere, and therefore all great circles have the same circumference as each other, and have the same center as the sphere. A great circle is the largest circle that can be drawn on any given sphere. Every circle in Euclidean 3-space is a great circle of exactly one sphere.

For most pairs of points on the surface of a sphere there is a unique great circle through the two points. The exception is a pair of antipodal points, for which there are infinitely many great circles. The minor arc of a great circle between two points is the shortest surface-path between them. In this sense the minor arc is analogous to “straight lines” in Euclidean geometry. The length of the minor arc of a great circle is taken as the distance between two points on a surface of a sphere in Riemannian geometry. The great circles are the geodesics of the sphere.

Great-circle navigation is the practice of navigating a vessel (a ship or aircraft) along a great circle. A great circle track is the shortest distance between two points on the surface of a sphere; the Earth isn't exactly spherical, but the formulas for a sphere are simpler and are often accurate enough for navigation.

Useful Links

92 questions
0
votes
0 answers

Plotting great circles from a subset in R

I have a data frame that after some processing (as geocoding for example) has the following characteristics: 'data.frame': 13 obs. of 5 variables: $ id : int 1 2 3 4 5 6 7 8 9 10 ... $ ciudad : Factor w/ 10 levels "Auch","Barcelona",..:…
ramiroaznar
  • 266
  • 5
  • 15
0
votes
2 answers

Calculating distance between lat long with javascript only returns NaN

So I have the following piece of javascript, and I have no idea why I keep getting Nan whenever I try to console log stuff inside the distance function. Even if I just log lat1, I'm getting NaN. But this only happens inside the getDistance function,…
Bart S.
  • 129
  • 2
  • 9
0
votes
3 answers

complex math with great circle formula

I have a from location (latitude, longitude) and to location (latitude, longitude). After calculating, it should show me what would be the nearest way to go from using a compass. The following is PHP code to do that, but its showing the wrong…
Basit
  • 16,316
  • 31
  • 93
  • 154
0
votes
2 answers

Great Circle Distance Problems (Spherical Vincenty Case and a simplified version)

%Great Circle Distnace -- Simplified %% 12.18993,133.45898 %% point 1 (lat/long) %% 14.34243,65.12750 %% point 2 (lat/long) %%VARIABLES%% phi_1=12.18993; %lat_1 phi_2=14.34243; %lat_2 gam_1=133.45898; %long_1 gam_2=65.12750; %long_2 delt_gam =…
Pierson Sargent
  • 175
  • 2
  • 18
0
votes
2 answers

great circle distance c++

I've included code (now) for the great circle distance formula. Code works until one of the lats/longs has S/E attached as their respective directions ( I attempted to use S/E as "negative directions"). Any help is extremely appreciated! #include…
LeoVannini
  • 95
  • 3
  • 11
0
votes
1 answer

Implementation of Great Circle Destination formula?

I am writing a Python program to generate some maps in Google Earth, I am using a colleague's script written in Perl and I came to a point where there is this Great Circle call: @r = great_circle_destination($long, $lat, $bearing, $dist); What is…
0
votes
1 answer

Fast trigonometric approximations in python

I am using python for trajectory comparison calculations that require a lot of great circle computations. These calculations require a lot of trigonometric functions and the script is currently very slow with the regular math.atan2 etc.…
0
votes
0 answers

Mathematical expression of latitude of point on great circle in objective c

I am trying to calculate Latitude of known Longtitude of exact point on great circle (straight path between two points on the surface of sphere) and need to exprees next formula: ϕ = arctg [ tgϕ2sin(λ-λ1) ] / sin(λ2-λ1) + [ tgϕ1sin(λ2-λ) ] /…
fir
  • 387
  • 1
  • 3
  • 19
0
votes
2 answers

MySQL returns NULL even if there are records in database satisfying the conditions of SELECT statement

My database has entries for coordinates. I want to fetch entries containing coordinates which are in a circle of specified radius. Thus, I use spherical law of cosines. But checking for such condition on all the database entries is too much…
Geek
  • 8,280
  • 17
  • 73
  • 137
0
votes
2 answers

Python calculate point of intersection of two great circles

I am trying to calculate the point of intersection (lat and lon in degrees) of two great circles that are each defined by two points on the circle. I have been trying to follow method outlined here. But the answer I get is incorrect, my code is…
Dave
  • 1,170
  • 3
  • 20
  • 30
0
votes
1 answer

Wrapping Great Circle arcs nicely in Mercator maps

I am using Bing Map Tiles and C#. This is a Silverlight application. In my application, I draw Great circle lines between locations on Mercator map. Everything works fine, till the circle tries to wrap around the map. For example, a great circle arc…
Abhishek
  • 95
  • 1
  • 1
  • 3
0
votes
2 answers

Implement Great Circle Algorithm

Below is a formula (Great Circle algorithm) that I want to be translated into PHP. I would really appreciate if someone would help me with that? The input is to different sets of coordinates, e.g: Place 1 Lat: 59.389057 Place 1 Long:…
holyredbeard
  • 19,619
  • 32
  • 105
  • 171
-1
votes
1 answer

I am trying to calculate a distance formula between 2 locations (or classes) using the Great circle distance formula

I have 2 different classes that model a Station Location and the other a calculated Location. These classes used to be a part of each other in one class but I have separated them out due to instructions from my teacher. I have most of the code done…
Amber Lyda
  • 23
  • 4
-1
votes
1 answer

using geopy for finding a great circle distance

I have a dataframe with columns "start lat", "start lon", "end lat" and "end lon". I want to use geopy to calculate distance for each row using above four columns. Plz help. from geopy.distance import great_circle great_circle([df['start station…
user2958481
  • 587
  • 2
  • 8
  • 20
-1
votes
2 answers

Great Circle Distance Formula in iOS

I need to calculate distance between Latitude and Longitude using Great Circle Formula. One way I know, is to use the following: CLLocation *locA = [[CLLocation alloc] initWithLatitude:lat1 longitude:long1]; CLLocation *locB = [[CLLocation alloc]…
Sundeep Saluja
  • 1,089
  • 2
  • 14
  • 36