Constructor
new MultiGeoTIFF(mainFile, overviewFiles)
Construct a new MultiGeoTIFF from a main and several overview files.
Parameters:
Name | Type | Description |
---|---|---|
mainFile |
GeoTIFF | The main GeoTIFF file. |
overviewFiles |
Array.<GeoTIFF> | An array of overview files. |
- Source:
Extends
Methods
(async) getImage(indexopt) → {GeoTIFFImage}
Get the n-th internal subfile of an image. By default, the first is returned.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
index |
Number |
<optional> |
0 | the index of the image to return. |
- Source:
Returns:
the image at the given index
- Type
- GeoTIFFImage
(async) getImageCount() → {Number}
Returns the count of the internal subfiles.
- Source:
Returns:
the number of internal subfile images
- Type
- Number
(async) readRasters(optionsopt, poolopt, widthopt, heightopt, resampleMethodopt, fillValueopt) → {Promise.<(TypedArray|Array.<TypedArray>)>}
(experimental) Reads raster data from the best fitting image. This function uses
the image with the lowest resolution that is still a higher resolution than the
requested resolution.
When specified, the bbox
option is translated to the window
option and the
resX
and resY
to width
and height
respectively.
Then, the readRasters method of the selected
image is called and the result returned.
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
optional parameters Properties
|
||||||||||||||||||||||||||
pool |
Number |
<optional> |
null | The optional decoder pool to use. |
|||||||||||||||||||||||||
width |
Number |
<optional> |
The desired width of the output. When the width is no the same as the images, resampling will be performed. |
||||||||||||||||||||||||||
height |
Number |
<optional> |
The desired height of the output. When the width is no the same as the images, resampling will be performed. |
||||||||||||||||||||||||||
resampleMethod |
String |
<optional> |
'nearest' | The desired resampling method. |
|||||||||||||||||||||||||
fillValue |
Number | Array.<Number> |
<optional> |
The value to use for parts of the image outside of the images extent. When multiple samples are requested, an array of fill values can be passed. |
- Inherited From:
- Source:
- See:
-
- GeoTIFFImage.readRasters
Returns:
the decoded arrays as a promise
- Type
- Promise.<(TypedArray|Array.<TypedArray>)>