coord2image.pl

Summary
coord2image.pl
COORD2IMAGE tool
optionsContains create-layer call options :
Functions
mainMain method.
initChecks and stores options, initializes the default logger.
Process methods
doItWe calculate the image path from provided coordinates, thanks to the TMS, the level and the image’s dimensions
Details
Command’s options

COORD2IMAGE tool

Synopsis

perl coord2image.pl --tms=file --coord=X,Y --level=ID [--tilesPerImage=widthwisexheightwise] [--verbose]

Tool allowing to know the file in a ROK4 pyramid, which contains a terrain point (coordinates are in the TMS’ system).

Example

./coord2image.pl --tms=TILEMATRIXSETS/PM.tms --coord=644555,5311519 --level=11 --tilesPerImage=16,16 --verbose

BEGIN
COORD2IMAGE : version [0.17.6]
  OFF : Coordinates : 644555, 5311519 (main::doIt)
  OFF : Tile's indices : 1056, 752 (main::doIt)
  OFF : Image's indices : 66, 47 (main::doIt)
  OFF : Result : 11/00/11/UB.tif (main::doIt)
END
Summary
optionsContains create-layer call options :
Functions
mainMain method.
initChecks and stores options, initializes the default logger.
Process methods
doItWe calculate the image path from provided coordinates, thanks to the TMS, the level and the image’s dimensions

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
tmsTo precise the use TMS file
coordTo precise where to write the XML layer file
levelTo precise the level in the TMS of the wanted image
tilesPerImageTo precise the number of tile in a pyramid’s image (widthwise and heightwise)
verboseTo log out many informations

Functions

main

sub main

Main method.

See Also

init, doIt

init

sub init

Checks and stores options, initializes the default logger.

Process methods

doIt

sub doIt

We calculate the image path from provided coordinates, thanks to the TMS, the level and the image’s dimensions

Use classes :

Details

Command’s options

--helpDisplay the link to the technic documentation.
--usageDisplay the link to the technic documentation.
--versionDisplay the tool version.
--tmsTMS file.  Mandatory.
--coordCoordinates, whose image path we want.  In the TMS’ system, X and Y are seperated by a comma
--levelLevel containing the wanted image
--tilesPerImageNumbers of tiles in the pyramid’s images, widthwise and heightwise, seperated by a comma.  Optionnal, 16 both wise by default.
--verboseTo log out many informations.  Optionnal.  No verbose 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 calculate the image path from provided coordinates, thanks to the TMS, the level and the image’s dimensions
Load and store all information about a Tile Matrix Set.
Base 36 converting tools.
Close