Message Boards Message Boards

GROUPS:

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

Posted 6 days ago
96 Views
|
2 Replies
|
0 Total Likes
|

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

2 Replies

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

Thank you very much, this works fine!

Chiel Geeraert

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