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
4
votes
1 answer

Shortest great circle distance between a point and a polygon on a sphere/globe

I have a set of polygons specified by geographic (WGS84) coordinates: they live on a sphere. I have a point specified by a latitude-longitude pair. I would like to (efficiently) find the minimum great circle distance between the point and the…
Richard
  • 56,349
  • 34
  • 180
  • 251
4
votes
1 answer

Distance between point and polygon

Task Calculate the distance d in meters between a query-point q and a polygon P. The query-point q is defined as tuple (latitudeq, longitudeq), the polygon P as ordered list of tuples [(latitude1, longitude1), ..., (latituden,…
user2033412
  • 1,950
  • 2
  • 27
  • 47
4
votes
3 answers

Distance from Point To Line great circle function not working right.

I need to get the distance from a lat/lng point to a line. Of course needs to follow the Great Circle. I found a great article on this at http://www.movable-type.co.uk/scripts/latlong.html but the code is not working right. Either I am doing…
Brad Mathews
  • 1,567
  • 2
  • 23
  • 45
3
votes
2 answers

Map GPS Coordinates to an Image and draw some GPS Points on it

I have some problems figuring out where my error is. I got the following: Have an image and corresponding GPS coordinates of its top-left and bottom-right vertices. E.g: topLeft.longitude = 8.235128; topLeft.latitude =…
user678145
  • 109
  • 1
  • 6
3
votes
1 answer

Drawing Connecting Lines ("Great Arcs") on a D3 Symbol Map

I am using Version 4 of the D3 Library and am, to this point, unable to draw connecting lines between points on a Symbol Map. In the example, from an earlier version of the library, drawing connecting lines is accomplished with this code: //…
Bob Kaufman
  • 12,864
  • 16
  • 78
  • 107
3
votes
1 answer

How to compare great circle distance with euclidean distance of two sphere points using python?

I am trying to check the error that is introduced when you compute the distance of two points on earth with the euclidean distance instead of using the great circle distance (gcd). I have two points that are defined by their lattitude and…
curious
  • 1,524
  • 6
  • 21
  • 45
3
votes
2 answers

Creating great circles map with R

All, I am trying to create a map with "Great Circles" similar to what Nathan Yau did in this posting. However, I am trying to do it for the whole world and all coming into a single location. I seem to be having problems with the loop section of…
breadly
  • 85
  • 1
  • 8
2
votes
0 answers

Are my equations correct? Rotate on sphere from lat/long points A to B, where will point C be?

I’ve written the below python script. The idea is to calculate the new location of point C after you rotate the globe from point A to point B. I first calculate point P, which is the rotation pole. With calculating point P already something goes…
joosthoek
  • 173
  • 1
  • 3
  • 9
2
votes
1 answer

SQL error for great circle calculation

I was searching stackoverflow and got an answer to my question, but when I tried to implement it with my code I got weird errors. here is the code: SELECT `zip_code`, (6371 * acos(cos(radians($latitude)) * cos(radians(`lat`)) * cos(radians(`long`) -…
Grigor
  • 4,139
  • 10
  • 41
  • 79
2
votes
2 answers

How to check if a point(lonc,latc) lie on a great circle running from (lona,lata) to (lonb,latb)

I'm trying to produce a boolean method that will return true if a point (lonc,latc) lies on a great circle arc starting at (lona,lata) and ending at (lonb,latb) the point of the method returning true is so if you are in a location where you should…
Nathan
  • 187
  • 1
  • 3
  • 10
2
votes
3 answers

Incorrect output when computing the distance in kilometres of the Great Circle using Haversine formula in Java

I'm trying to compute the distance in kilometres of the Great Circle using Haversine formula in Java as shown below /* Program to demonstrate the Floating-point numbers and the Math library. * The great-circle distance is the length of the shortest…
Alok Y
  • 93
  • 9
2
votes
2 answers

How would I go about writing a program to rotate at point around a sphere based on an angle as if walking around it?

I am working on a project where I need to (as a 2d point) walk around a 3d sphere. I am having trouble figuring out how to achieve this without polar distortion. Basically I want to have Move Forward, Backward, Left, and Right, as well as Turn Left,…
2
votes
2 answers

Rendering curved flight paths from geojson file

I'm working on a Laravel based application where users can create flights and then view the flight routes on maps. Some of these maps consist of up to 10.000 flights. With these numbers Mapbox would sometimes crash the browser or take a really long…
shabushabu
  • 245
  • 3
  • 8
2
votes
4 answers

Drawing Great Circle overlay lines on an MKMapView

I'm trying to draw a Great Circle line between two lat/lon points on an MKMapView. This is a line that would appear rounded (a 'straight' line on a globe) and is best visualized here. In fact this very odd WordPress site seems to begin to describe…
Ryan
  • 159
  • 2
  • 14
2
votes
0 answers

Intercept of sunrise on an Airplane

I want to calculate predicted Time of closest approach between an aircraft and Sunrise or Sunset keeping in mind: Airplane Flying South-westbound as sunrise approaches Red line is the GreatCircle Track on airplane. Blue circle is the…