Skip to main content

Class: MultiCOGSource

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

The files of one scene, opened, such as the band files of one Sentinel-2 image, ready for a MultiCOGLayer to draw.

Create it with MultiCOGSource.open, which opens every file, checks that they make up one scene, and resolves their CRS once. Several layers can share one source.

Extends​

Properties​

geotiffs​

readonly geotiffs: ReadonlyMap<string, GeoTIFF>

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

The opened files, by name, in the record's key order, as Object.keys lists them.


multiTilesetDescriptor​

readonly multiTilesetDescriptor: MultiRasterTilesetDescriptor

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

Every file's tile grid, with the finest file's grid as the primary, which is also RasterSource.tilesetDescriptor.


projection​

readonly projection: ProjectionDefinition

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

The CRS of every file, resolved once.

Methods​

open()​

static open(inputs, options?): Promise<MultiCOGSource>

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

Open the files of one scene, by name: read every header, check that the files share a CRS and an extent, resolve the CRS, and group the files' tile grids.

Takes the same options as COGSource.open, which apply to every file. Rejects with an error naming the file that failed to open, or the files that don't make up one scene. Rejects with an AbortError when signal aborts before the source is ready.

Parameters​

inputs​

Record<string, COGInput>

options?​

COGSourceOptions = {}

Returns​

Promise<MultiCOGSource>