DataSets[Builtin][WorldMap]
AddPath
insert a great circle path between two points
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
AddPath(m,p1,p2,option)
AddPath(m,ref1,ref2,option)
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
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.
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.
m≔DataSets:-Builtin:-WorldMap⁡
m≔PLOT⁡...A map of the worldprojection: MillerCylindrical
AddPath⁡m,0,0,−100,40
PLOT⁡...A map of the world with 2 pointsprojection: MillerCylindrical
Display⁡m
AddPath⁡m,120,40,−87,45
PLOT⁡...A map of the world with 4 pointsprojection: MillerCylindrical
SetCenter⁡m,160,0
The DataSets[Builtin][WorldMap][AddPath] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
RemovePath
WorldMap
Download Help Document