DataSets[Builtin] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

DataSets[Builtin]

  

WorldMap

  

create a WorldMap object

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

WorldMap()

WorldMap(ref,option)

WorldMap(points,option)

Parameters

ref

-

a Reference to the GeoNames dataset

points

-

a list of points where each sublist defines a point by longitude, latitude, and an optional string label

option

-

(optional) keyword option of the form option=value, where option can be limit

Options

• 

limit : posint; specifies the maximum number of points that a WorldMap object is allowed to store. By default, the value of limit is 100.

Description

• 

The WorldMap command creates a WorldMap object that can be used to display maps of the world in various ways.

• 

If no argument is specified, the command returns a WorldMap object with no point stored.

• 

If a ref to the GeoNames dataset is given, the WorldMap object created loads all data points in ref.

• 

If a nested list of points is given, the WorldMap object created stores all points in the nested list. Each sublist in points must be a list of at least two elements: the first being the longitude (x-coordinate in the Geographic projection) and the second being the latitude (y-coordinate in the Geographic projection). The optional third element is a string label for the point.

• 

The longitude must lie in the interval [-180,180], and the latitude must lie in the interval [-90,90].

• 

Note that the number of points in both ref and points cannot exceed limit.

• 

Here is the list of commands defined for WorldMap objects:

AddPath

AddPoint

AddPoints

ChoroplethMap

Display

GetPointsList

Project

RemovePath

RemovePoint

ResetView

SetCenter

SetProjection

SetView

WorldMap

ZoomIn

ZoomOut

• 

The Project command, used to project longitude-latitude pairs to different projections, does not operate on a WorldMap object, unlike most other commands in the WorldMap package.

• 

For a list of supported map projections, see the List of Projections help page.

Examples

Create a WorldMap object with no points stored.

mDataSets:-Builtin:-WorldMap

mPLOT...A map of the worldprojection: MillerCylindrical

(1)

Displaym

Create a WorldMap object with three points stored.

m2DataSets:-Builtin:-WorldMap121.5,31.2,Shanghai,123.1,49.25,Vancouver,118.25,34.05,Los Angeles

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

(2)

Displaym2

Create a WorldMap object with a GeoNames dataset reference

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

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

(3)

m3DataSets:-Builtin:-WorldMapref

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

(4)

Displaym3

Compatibility

• 

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

• 

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

See Also

AddPath

AddPoint

AddPoints

ChoroplethMap

Display

GetPointsList

List of Projections

Project

RemovePath

RemovePoint

ResetView

SetCenter

SetProjection

SetView

WorldMap

ZoomIn

ZoomOut