create-layer.pl

Summary
create-layer.pl
CREATE-LAYER tool
optionsContains create-layer call options :
Functions
mainMain method.
initChecks and stores options, initializes the default logger.
Process methods
doItWe extract all needed informations from the pyramid’s descriptor, and write them into the XML layer file.
Details
Command’s options

CREATE-LAYER tool

Synopsis

perl create-layer.pl --pyr=file --tmsdir=dir [--layerdir=dir] [--style=string] [--resampling=string]

Tool allowing to generate the layer file.  This file is used by ROK4 to find (and interpret) data to compose the requested image.

Default SRS’ list :

  • data’s SRS
  • CR:84
  • IGNF:WGS84G
  • EPSG:3857
  • EPSG:4258

The XML file has the same name than the used pyramid.

Summary
optionsContains create-layer call options :
Functions
mainMain method.
initChecks and stores options, initializes the default logger.
Process methods
doItWe extract all needed informations from the pyramid’s descriptor, and write them into the XML layer file.

options

my %options

Contains create-layer call options :

versionTo obtain the command’s version
helpTo obtain the command’s help
usageTo obtain the command’s usage
pyramidTo precise the pyramid’s descriptor
layer-pathTo precise where to write the XML layer file
tms-pathTo precise the TMS directory
resamplingTo precise the interpolation to used
styleTo precise the style to apply
opaqueTo define opacity

Functions

main

sub main

Main method.

See Also

init, doIt

init

sub init

Checks and stores options, initializes the default logger.  Checks TMS directory and the pyramid’s descriptor file.

Process methods

doIt

sub doIt

We extract all needed informations from the pyramid’s descriptor, and write them into the XML layer file.

Use classes :

Details

Command’s options

--helpDisplay the link to the technic documentation.
--usageDisplay the link to the technic documentation.
--versionDisplay the tool version.
--pyrPyramid’s descriptor file, defining data used by the layer.  Mandatory.
--tmsdirTMS directory.  Mandatory.
--layerdirOptionnal, directory where to write the XML .lay file.  Written where the command is executed by default.
--resamplingOptionnal, interpolation kernel used by ROK4 to resample images. lanczos_4 by default.
--styleOptionnal, style to apply to images. normal by default.
my %options
Contains create-layer call options :
sub main
Main method.
sub init
Checks and stores options, initializes the default logger.
sub doIt
We extract all needed informations from the pyramid’s descriptor, and write them into the XML layer file.
Load and store all information about a Tile Matrix Set.
Describe a layer for a ROK4 server.
Close