Message Boards Message Boards

Create a "Great Circle" on a globe through two given points?

Posted 5 years ago

A collegue of mine is on holiday from Amsterdam to Miami. Just for fun I would like to plot the great circle through the center of the earth going through Amsterdam and Miami. I tried to do that with GeoGraphics/Geopath, but for both came the Error-Message “GeoGraphics/Geopath” is not a graphics primitive. I tried several things but I cannot get it right ? How to create it ?

The code is from the Wolfram help with some adaption. See att.

Thank you

POSTED BY: Chiel Geeraert
2 Replies
Posted 5 years ago

Thank you very much, this works fine!

Chiel Geeraert

POSTED BY: Chiel Geeraert

Try this:

GeoGraphics[
 GeoPath[{Entity[
    "City", {"Amsterdam", "NoordHolland", "Netherlands"}], 
   Entity["City", {"Miami", "Florida", "UnitedStates"}]}], 
 GeoRange -> Automatic, GeoProjection -> "Mercator", Frame -> True, 
 GeoGridLines -> Quantity[10, "AngularDegrees"], 
 GeoRangePadding -> {None, Quantity[800, "Kilometers"]}, 
 ImageSize -> Large]

enter image description here

or likewise:

GeoGraphics[
 GeoPath[{Entity[
    "City", {"Amsterdam", "NoordHolland", "Netherlands"}], 
   Entity["City", {"Miami", "Florida", "UnitedStates"}]}], 
 GeoRange -> Automatic, GeoProjection -> "Orthographic", 
 Frame -> False, GeoGridLines -> Automatic, 
 GeoRangePadding -> {None, Quantity[800, "Kilometers"]}, 
 ImageSize -> Large]

enter image description here

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract