MakeTLT
MakeTLT (TileDir, TileFileNameList, outputAbsoluteFileName, Type, PlugName, SearchInSubFolders, GeneratePolygonMask, WidthTileDivision, HeightTileDivision, WidthOverlap, HeightOverlap) |
Enables loading several raster files, into TerraBuilder, as one source file These files must all have the same Units Per Pixel. See “Tiling Files” in the “Layer Management” chapter for more information on tiling files into a custom number of Tile Text File (TLT) source files.
This method enables you to create a custom tile division, in which you define the required width and height tile division (WidthTileDivision, HeightTileDivision), together with the overlap (in pixels) to be created between the tiles (WidthOverlap, HeightOverlap).
Parameters
Name |
Type |
Description |
TileDir |
string |
A full path to the directory of files to be tiled. Note: In JavaScript, double slashes (\\) must be used for path strings, e.g. "C:\\Users\\Administrator\\Documents”. |
TileFileNameList |
string |
List of source files and directory names to be tiled, with each value surrounded by double quotes and values separated by spaces, e.g., "\"file1\" \"file2\" \"file3\" \"dir1\" \"dir2\"". To include all files in the TileDir folder, pass “.” for this argument. |
outputAbsoluteFileName |
string |
File name for the output TLT file. Note: If the WidthTileDivision or HeightTileDivision is set to a value greater than one, multiple files will be created using the naming system described in “Tiling Files” in the “Layer Management” chapter. |
Type |
string |
File type: “Elevation” or “Imagery”. (Default: Imagery). |
PlugName |
string |
Any file with an RCT extension that exists in the TB application files directory. If an empty string is passed to this parameter, the first plugin for the first file type is used (optional). |
SearchInSubFolders |
Boolean |
A Boolean that determines whether to search in sub-folders for files. |
GeneratePolygonMask |
Boolean |
A Boolean that determines whether a shapefile is created based on the extents of the tiles included in the TLT. The polygon mask can be imported to the TLT layer to perform polygon operations. |
WidthTileDivision |
number (double) |
Number of tiles to cover the width of the area. |
HeightTileDivision |
number (double) |
Number of tiles to cover the height of the area |
WidthOverlap |
number (double) |
Horizontal overlap in pixels. |
HeightOverlap |
number (double) |
Vertical overlap in pixels. |