new GeoTIFFImage(fileDirectory, geoKeys, dataView, littleEndian)
GeoTIFF sub-file image.
Parameters:
| Name | Type | Description |
|---|---|---|
fileDirectory |
Object | The parsed file directory |
geoKeys |
Object | The parsed geo-keys |
dataView |
DataView | The DataView for the underlying file. |
littleEndian |
Boolean | Whether the file is encoded in little or big endian |
- Source:
Methods
getFileDirectory() → {Object}
Returns the associated parsed file directory.
- Source:
Returns:
the parsed file directory
- Type
- Object
getGeoKeys() → {Object}
Returns the associated parsed geo keys.
- Source:
Returns:
the parsed geo keys
- Type
- Object
getHeight() → {Number}
Returns the height of the image.
- Source:
Returns:
the height of the image
- Type
- Number
getSamplesPerPixel() → {Number}
Returns the number of samples per pixel.
- Source:
Returns:
the number of samples per pixel
- Type
- Number
getTiePoints() → {Array.<Object>}
Returns an array of tiepoints.
- Source:
Returns:
- Type
- Array.<Object>
getTileHeight() → {Number}
Returns the height of each tile.
- Source:
Returns:
the height of each tile
- Type
- Number
getTileOrStrip(x, y, plane) → {Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array}
Returns the decoded strip or tile.
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | the strip or tile x-offset |
y |
Number | the tile y-offset (0 for stripped images) |
plane |
Number | the planar configuration (1: "chunky", 2: "separate samples") |
- Source:
Returns:
- Type
- Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array
getTileWidth() → {Number}
Returns the width of each tile.
- Source:
Returns:
the width of each tile
- Type
- Number
getWidth() → {Number}
Returns the width of the image.
- Source:
Returns:
the width of the image
- Type
- Number
readRasters(imageWindowopt, samplesopt) → {Array.<TypedArray>}
Reads raster data from the image. This function reads all selected samples
into separate arrays of the correct type for that sample. When provided,
only a subset of the raster is read for each sample.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
imageWindow |
Array |
<optional> |
whole image | the subset to read data from. |
samples |
Array |
<optional> |
all samples |
- Source:
Returns:
the requested data as a summary array, one TypedArray for each requested sample
- Type
- Array.<TypedArray>