AddPath - Maple Help

DataSets[Builtin][WorldMap]

 insert a great circle path between two points

Parameters

 m - a WorldMap object p1,p2 - a list representing a point ref1,ref2 - a Reference to the GeoNames dataset option - (optional) keyword option of the form option=value, where option can be endpoints

Options

 • endpoints : truefalse; determines whether or not the two points are added to the list of points that m stores. By default, endpoints is set to true.

Description

 • The AddPath command inserts a great circle path connecting two points where the path is the shortest route between the two points on the earth's surface.
 • If p1 and p2 are given, both p1 and p2 must be lists of either two or three elements. The first element is the longitude (x-coordinate in the Geographic projection), and the second element is the latitude (y-coordinate in the Geographic projection). The optional third element is a string label for the point.
 • If ref1 and ref2 are given, both ref1 and ref2 must contain exactly one row, so they each corresponds to exactly one point.

Examples

 > $m≔\mathrm{DataSets}:-\mathrm{Builtin}:-\mathrm{WorldMap}\left(\right)$
 ${m}{≔}\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (1)
 > $\mathrm{AddPath}\left(m,\left[0,0\right],\left[-100,40\right]\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 2 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (2)
 > $\mathrm{Display}\left(m\right)$
 > $\mathrm{AddPath}\left(m,\left[120,40\right],\left[-87,45\right]\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 4 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (3)
 > $\mathrm{Display}\left(m\right)$
 > $\mathrm{SetCenter}\left(m,\left[160,0\right]\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 4 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (4)
 > $\mathrm{Display}\left(m\right)$
 > 

Compatibility

 • The DataSets[Builtin][WorldMap][AddPath] command was introduced in Maple 2017.
 • For more information on Maple 2017 changes, see Updates in Maple 2017.