Module: source

Classes

BlockedSource

Methods

(static) makeBufferSource(arrayBuffer)

Create a new source to read from a local ArrayBuffer.

Parameters:
Name Type Description
arrayBuffer ArrayBuffer

The ArrayBuffer to parse the GeoTIFF from.

Source:
Returns:

The constructed source

(static) makeFetchSource(url, optionsopt)

Create a new source to read from a remote file using the fetch API.

Parameters:
Name Type Attributes Description
url string

The URL to send requests to.

options Object <optional>

Additional options.

Properties
Name Type Attributes Description
blockSize Number <optional>

The block size to use.

headers object <optional>

Additional headers to be sent to the server.

Source:
Returns:

The constructed source

(static) makeFileReaderSource(file)

Create a new source from a given file/blob.

Parameters:
Name Type Description
file Blob

The file or blob to read from.

Source:
Returns:

The constructed source

(static) makeFileSource(path)

Creates a new source using the node filesystem API.

Parameters:
Name Type Description
path string

The path to the file in the local filesystem.

Source:
Returns:

The constructed source

(static) makeRemoteSource(url, optionsopt)

Create a new source to read from a remote file. Uses either XHR or fetch.

Parameters:
Name Type Attributes Description
url string

The URL to send requests to.

options Object <optional>

Additional options.

Properties
Name Type Attributes Description
blockSize Number <optional>

The block size to use.

headers object <optional>

Additional headers to be sent to the server.

Source:
Returns:

The constructed source

(static) makeXHRSource(url, optionsopt)

Create a new source to read from a remote file using the XHR API.

Parameters:
Name Type Attributes Description
url string

The URL to send requests to.

options Object <optional>

Additional options.

Properties
Name Type Attributes Description
blockSize Number <optional>

The block size to use.

headers object <optional>

Additional headers to be sent to the server.

Source:
Returns:

The constructed source