DataSets[Builtin][WorldMap] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : DataSets Package : Builtin : WorldMap : DataSets/Builtin/WorldMap/RemovePoint

DataSets[Builtin][WorldMap]

  

RemovePoint

  

remove one or more point(s) from a WorldMap object

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

RemovePoint(m,ref)

RemovePoint(m,p)

RemovePoint(m,label)

Parameters

m

-

a WorldMap object

ref

-

a Reference to the GeoNames dataset

p

-

a list representing one or more point(s) in m

label

-

a string label for one or more point(s) in m

Description

• 

The RemovePoint command removes all points specified by either ref,p, or label from m.

• 

If ref is given, all points contained in ref are removed from m.

• 

If p is given, p must be a list of either two or three elements. The first element in p is the longitude (x-coordinate in the Geographic projection), and the second element in p is the latitude (y-coordinate in the Geographic projection). The optional third element is a string label for the point.

• 

If label is given, all points in m with a string label equal to label are removed.

• 

If you try to remove a point that does not exist in m, no change is made to m. For example, if a ref containing three rows is supplied, but only two corresponding points from ref actually exist in m, then the behavior would be the same as if ref contains only those two points.

Examples

refDataSets:-Builtin:-ReferenceGeonamesCountry=Canada,Name=Waterloo

refGeonames (GeoNamesid)NameType(7 more)6176821Waterloopopulated place6176823Waterloopopulated place8673866Waterloothird-order administrative division

(1)

mDataSets:-Builtin:-WorldMapref

mPLOT...A map of the world with 3 pointsprojection: MillerCylindrical

(2)

GetPointsListm

−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo,−72.5158200000000051,45.3500799999999984,Waterloo

(3)

RemovePointm,ref1

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

(4)

GetPointsListm

−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo

(5)

AddPointsm,10,10,a,10,10,b,10,10,c,10,10,d

PLOT...A map of the world with 6 pointsprojection: MillerCylindrical

(6)

GetPointsListm

−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo,−10,−10,a,−10,10,d,10,−10,b,10,10,c

(7)

RemovePointm,10,10

PLOT...A map of the world with 5 pointsprojection: MillerCylindrical

(8)

GetPointsListm

−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo,−10,10,d,10,−10,b,10,10,c

(9)

Displaym

Compatibility

• 

The DataSets[Builtin][WorldMap][RemovePoint] command was introduced in Maple 2017.

• 

For more information on Maple 2017 changes, see Updates in Maple 2017.

See Also

AddPoint

AddPoints

WorldMap