Group Abstract Group Abstract

Message Boards Message Boards

Plot a single vector over geographic data?

Posted 3 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
Posted 3 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

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.

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