Skip to main content

Class: COGSource

Defined in: packages/deck.gl-geotiff/src/cog-source.ts:90

One opened Cloud-Optimized GeoTIFF, ready for a COGLayer to draw.

Create it with COGSource.open, which reads the file's header and resolves its CRS once. Several layers can share one source.

Extends​

Properties​

geotiff​

readonly geotiff: GeoTIFF

Defined in: packages/deck.gl-geotiff/src/cog-source.ts:92

The opened file.


projection​

readonly projection: ProjectionDefinition

Defined in: packages/deck.gl-geotiff/src/cog-source.ts:95

The file's CRS, resolved once.

Methods​

open()​

static open(input, options?): Promise<COGSource>

Defined in: packages/deck.gl-geotiff/src/cog-source.ts:114

Open a COG: read its header, resolve its CRS, and build its tile grid.

Rejects with an AbortError when signal aborts before the source is ready.

Parameters​

input​

COGInput

options?​

COGSourceOptions = {}

Returns​

Promise<COGSource>