Class: GeoTiffReader

GeoTiffReader(ArrayBuffer)

Parses a geotiff and creates an image or an elevation array representing its contents.

Constructor

new GeoTiffReader(ArrayBuffer)

Constructs a geotiff reader object for a specified geotiff URL. Call readAsImage to retrieve the image as a canvas or readAsData to retrieve the elevations as an array of elevation values.
Parameters:
Name Type Description
ArrayBuffer String The ArrayBuffer of the GeoTiff
Source:
Throws:
If the specified URL is null or undefined.
Type
ArgumentError

Members

(readonly) geoTiffData :ArrayBuffer

The buffer descriptor of the geotiff file's content.
Type:
  • ArrayBuffer
Source:

(readonly) imageFileDirectories :Array.<TiffIFDEntry>

An array containing all the image file directories of the geotiff file.
Type:
Source:

(readonly) isLittleEndian :Boolean

Indicates whether the geotiff byte order is little endian..
Type:
  • Boolean
Source:

(readonly) metadata :GeoTiffMetadata

An objct containing all tiff and geotiff metadata of the geotiff file.
Type:
Source:

Methods

(static) retrieveFromUrl(url, parserCompletionCallback)

Attempts to retrieve the GeoTiff data from the provided URL, parse the data and return a GeoTiffReader using the provided parserCompletionCallback.
Parameters:
Name Type Description
url the URL source for the GeoTiff
parserCompletionCallback a callback wher
Source:

getImage() → {Canvas}

Creates an RGB canvas from the GeoTiff image data.
Source:
Returns:
Type
Canvas

getImageData() → {TypedArray}

Creates a typed array based on the contents of the GeoTiff.
Source:
Returns:
Type
TypedArray

isGeoTiff() → {Boolean}

Indicates whether this geotiff is a geotiff file type.
Source:
Returns:
True if this geotiff file is a geotiff file type.
Type
Boolean

isTiffFileType() → {Boolean}

Indicates whether this geotiff is a tiff file type.
Source:
Returns:
True if this geotiff file is a tiff file type.
Type
Boolean

setBBox()

Set the bounding box of the geotiff file. Internal use only.
Source: