ILWIS objects

Raster maps - Pyramid layers

 

To speed up the display of large raster maps, for instance maps or satellite images which consist of a few thousand lines and columns or more, you can create Pyramid layers.

When Pyramid layers are created for a raster map, an extra file (.MPY#) is created for the raster map. This file stores for every possible zoom factor 2, a 'display version' of the raster map.

The file containing the pyramid layers will thus contain:

When a raster map with pyramid layers is subsequently displayed in a map window, and depending on the map's zoom factor and the size of the map window, the best layer is picked from the file with the pyramid layers; this layer will be displayed.

 

Creating pyramid layers:

You can create Pyramid layers for one or more raster maps in a directory, including the raster maps in a map list:

Pyramid layers can only be created for a raster map, when the data file (.MP#) of the raster map already exists, i.e. the raster map must have been calculated. The extension of the file containing the pyramid layers is .MPY#.

It is furthermore not possible to create pyramid layers for read-only raster maps nor for read-only map lists.

Deleting pyramid layers:

You can delete Pyramid layers of one or more raster maps:

Example:

When an original raster map contains for instance 5000 lines and 2500 columns, the file containing the pyramid layers of this raster map will contain the following layers or versions of the map:

 

In each version or layer, of each 2 consecutive lines and of each 2 consecutive columns, 1 line and 1 column is skipped.

Some layers of satellite image TMB4:

227 lines x 140 columns

113 lines x 70 columns

56 lines x 35 columns

Behaviour when editing, copying or deleting raster maps:

When a raster map is edited, and when pyramid layers exist for the raster map, then the file containing the pyramid layers of the map will be removed. When finished editing, you can create new pyramid layers for the raster map.

When a raster map is copied to another directory, and when pyramid layers exist for the raster map, then the file containing the pyramid layers will also be copied.

When a raster map is deleted, and when pyramid layers exist for the raster map, then also the file containing the pyramid layers will be deleted.

Technical information:

When pyramid layers are created for a raster map, a binary file with extension .MPY# will be created for the raster map. The .MPY# file will exist next to the binary data file of the raster map .MP#. The raster map's object definition file .MPR will be adapted so that it is known that an .MPY# file with pyramid layers exists.

See also: