DataSets[Builtin][WorldMap]
RemovePoint
remove one or more point(s) from a WorldMap object
Calling Sequence
Parameters
Description
Examples
Compatibility
RemovePoint(m,ref)
RemovePoint(m,p)
RemovePoint(m,label)
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
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.
ref≔DataSets:-Builtin:-Reference⁡GeonamesCountry=Canada,Name=Waterloo
ref≔
m≔DataSets:-Builtin:-WorldMap⁡ref
m≔PLOT⁡...A map of the world with 3 pointsprojection: MillerCylindrical
GetPointsList⁡m
−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo,−72.5158200000000051,45.3500799999999984,Waterloo
RemovePoint⁡m,ref1
PLOT⁡...A map of the world with 2 pointsprojection: MillerCylindrical
−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo
AddPoints⁡m,−10,−10,a,10,−10,b,10,10,c,−10,10,d
PLOT⁡...A map of the world with 6 pointsprojection: MillerCylindrical
−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo,−10,−10,a,−10,10,d,10,−10,b,10,10,c
RemovePoint⁡m,−10,−10
PLOT⁡...A map of the world with 5 pointsprojection: MillerCylindrical
−80.5163900000000012,43.4667999999999992,Waterloo,−72.5279599999999931,45.3367300000000029,Waterloo,−10,10,d,10,−10,b,10,10,c
Display⁡m
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
Download Help Document