AddPath - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


DataSets[Builtin][WorldMap]

  

AddPath

  

insert a great circle path between two points

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

AddPath(m,p1,p2,option)

AddPath(m,ref1,ref2,option)

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≔DataSets:-Builtin:-WorldMap⁡

m≔PLOT⁡...A map of the worldprojection: MillerCylindrical

(1)
> 

AddPath⁡m,0,0,−100,40

PLOT⁡...A map of the world with 2 pointsprojection: MillerCylindrical

(2)
> 

Display⁡m

> 

AddPath⁡m,120,40,−87,45

PLOT⁡...A map of the world with 4 pointsprojection: MillerCylindrical

(3)
> 

Display⁡m

> 

SetCenter⁡m,160,0

PLOT⁡...A map of the world with 4 pointsprojection: MillerCylindrical

(4)
> 

Display⁡m

Compatibility

• 

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