Message Boards Message Boards

Plot a single vector over geographic data?

Posted 2 years ago

I'm a total novice...How do you plot a single vector over geographic data!?...So basically, from one GeoPosition to another GeoPosition...a position vector!?

Attachments:
POSTED BY: Frank Russo
2 Replies

There are several ways to do this, depending on whether you want to join the points with straight or curved (say geodesic) lines.

For these two example locations:

loc1 = GeoPosition[{40, -90}];
loc2 = GeoPosition[{-30, 60}];

try the following inputs:

GeoGraphics[{Red, Thick, Line[{loc1, loc2}]}, GeoRange -> "World"]

GeoGraphics[{Red, Thick, Arrow[Line[{loc1, loc2}]]}, GeoRange -> "World"]

GeoGraphics[{Red, Thick, GeoPath[{loc1, loc2}]}, GeoRange -> "World"]

GeoGraphics[{Red, Thick, Arrow[GeoPath[{loc1, loc2}]]}, GeoRange -> "World"]

You can use Entity objects instead of GeoPosition objects as locations too.

Posted 2 years ago

Thank You, my brother!

I'm going to give your suggestions...a try, later! I'll keep you-posted! Thanks, FR

POSTED BY: Frank Russo
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