Checks if you have enough memory for single tile
(object)
Return object from scanInputData
object
:
Object like { singleTile: false, x: 8, y: 11 }
Determines the maximum size of a merged tile
object
:
Object like { singleTile: false, x: 8, y: 11 }
TODO
(any)
(any)
TODO
(any)
(any)
(any)
TODO
(any)
(any)
TODO [determineMergedTiles description]
([type])
[description]
([type])
[description]
object
:
[description]
//Return object
[
{ name: 'x0_y0', x: { from: 0, to: 15 }, y: { from: 0, to: 21 } },
{ name: 'x0_y1', x: { from: 0, to: 15 }, y: { from: 22, to: 43 } }
]
Determines the x and y value as integer from filename.
(string)
Filename of a wms-downloader tile.
object
:
Object with x and y values as integer like {file: "x0_y1.tif", x: 0, y: 1}.
TODO
(any)
Checks, if the file is a supported image.
(String)
File name
(Boolean | String)
:
false: File name is no image; string: File extension
TODO
(any)
(any)
TODO
(any)
(any)
TODO
(any)
(any)
(any)
(any)
TODO
(any)
(any)
(any)
TODO
(any)
(any)
(any)
(any)
Determines information about the input data
(any)
object
:
Object with a lots of information about the input data, see example.
//execute function
scanInputData('D:/input', 'D:/output', ['gif', 'tif']);
//return object
{
"inputDir": "D:/input",
"outputDir": "D:/output",
"outputFormats": [
{
"fileExt": "gif",
"worldFileExt": "gfw"
}
],
"workers": 2,
"freeMemory": 12207316992,
"tiles": {
"fileExt": "tif",
"worldFileExt": "tfw",
"numOfX": 15,
"numOfY": 22,
"width": 3000,
"height": 3000,
"bytesPerPixel": 3
}
}