Working With Bounds

Contents

Certain commands accept the bounds parameter which limits the working area of the command to a specific map area. This parameter is usually optional and depending on whether you specify it, a command can behave in three different ways:

  1. If you specify the bounds parameter, the command will use your custom bounds.
  2. If you omit the parameter, the command will either a) use the current map view bounds or b) use the "locked" bounds (if bounds locking was performed earlier).

Locking Bounds

If you want to perform several commands on the same map area, you can "lock" the bounds to that area. Example:

bounds-set 14,20,16,30
download-osm
generate-relief-igor

This set of commands will lock the bounds to a box between 14 and 16 degrees of longitude and 20 and 30 degrees of latitude. After locking the bounds, it will download OSM data for that area and generate a hillshading relief for that same area. The locked area will be displayed as a dashed rectangle on the map.

Just to make it more understandable, you can achieve the same thing without the locking of bounds:

download-osm bounds=14,20,16,30
generate-relief-igor bounds=14,20,16,30

Using Bounds From A Map Source

You can also use bounds from a map source. Example:

load-source maps\MyMap.osm
bounds-use-source

This way you can limit the working area to the bounds of your MyMap.osm

Unlocking Bounds

To unlock the bounds, simply call

bounds-reset

command.

See also: