Pyramid.Copy

Description

Name

class Tinman.Pyramid.Copy

Derived from

Operation

Processes the given pyramid tiles by getting the tile data for each one and optionally copies the tile data to the specified output pyramid.

The copy operation can be used to transfer tile data from one pyramid to another. Also, it may be used without target, for example to warm up a pyramid file cache.

Fields / Required

source

Type

Pyramid

Constraint

# != null

The source pixel pyramid.

Fields / Optional

target

Type

Pyramid

Default

null

The target pixel pyramid or null to just visit the tiles in this pyramid.


mode

Type

number

Default

0

The copy mode (will be ignored if target is null):
0: get all source tiles and always copy to target
1: get and copy source tile only if target tile does not exist.
2: get and copy source tile only if target tile already exists.