SourceLevel.pm

Summary
SourceLevel.pm
JOINCACHE::SourceLevelDescribe a level in a pyramid.
Constructors
newLevel constructor.
BBOX tools
intersectBboxIndicesIntersects provided indices bbox with the extrem tiles of this source level.
Getters - Setters
getID
getDirImage
getDirMask
Export methods
exportForDebugReturns all source level’s informations.

JOINCACHE::SourceLevel

Exporter
JOINCACHE::SourceLevel

Describe a level in a pyramid.

Using

use JOINCACHE::SourceLevel;

my $params = {
    id => "level_5",
    dir_image => "/home/IGN/BDORTHO/IMAGE/level_5/",
    dir_mask => "/home/IGN/BDORTHO/MASK/level_5/",
    limits => [365,368,1026,1035]
};

my $objSourceLevel = JOINCACHE::SourceLevel->new($params);

Attributes

idstring - Level identifiant, present in the TMS.
dir_imagestring - Absolute images’ directory path for this level.
dir_maskstring - Optionnal (if masks are present in the source pyramid).  Absolute masks’ directory path for this level.
limitsinteger array - Level’s extrem tiles : [iMin, jMin, iMax, jMax]

Limitations

Metadata not implemented.

Summary
Constructors
newLevel constructor.
BBOX tools
intersectBboxIndicesIntersects provided indices bbox with the extrem tiles of this source level.
Getters - Setters
getID
getDirImage
getDirMask
Export methods
exportForDebugReturns all source level’s informations.

Constructors

new

sub new

Level constructor.  Bless an instance.  Check and store level’s attributes values.

Parameters (hash)

idstring - Level identifiant
limitsinteger array - Level’s extrem tiles : [colMin, rowMin, colMax, rowMax]
dir_imagestring - Absolute images’ directory path for this level
dir_maskstring - Optionnal.  Absolute mask’ directory path for this level

BBOX tools

intersectBboxIndices

sub intersectBboxIndices

Intersects provided indices bbox with the extrem tiles of this source level.  Provided list is directly modified.

Parameters (list)

bboxlist reference - Bounding box to intersect with the level’s limits : (colMin,rowMin,colMax,rowMax).

Getters - Setters

getID

sub getID

getDirImage

sub getDirImage

getDirMask

sub getDirMask

Export methods

exportForDebug

sub exportForDebug

Returns all source level’s informations.  Useful for debug.

Example

sub new
Level constructor.
sub intersectBboxIndices
Intersects provided indices bbox with the extrem tiles of this source level.
sub getID
sub getDirImage
sub getDirMask
sub exportForDebug
Returns all source level’s informations.
Close