Class: GeoTiffReader

GeoTiffReader(url)

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

Constructor

new GeoTiffReader(url)

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
url String The location 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:

(readonly) url :String

The geotiff URL as specified to this GeoTiffReader's constructor.
Type:
  • String
Source:

Methods

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

readAsData(callback)

Retrieves the GeoTiff file, parses it and creates a typed array of its content. The array is passed to the callback function as a parameter.
Parameters:
Name Type Description
callback function A function called when GeoTiff parsing is complete.
Source:

readAsImage(callback)

Retrieves the GeoTiff file, parses it and creates a canvas of its content. The canvas is passed to the callback function as a parameter.
Parameters:
Name Type Description
callback function A function called when GeoTiff parsing is complete.
Source:

setBBox()

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