Skip to main content

Type Alias: COGSourceOptions

COGSourceOptions = object

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

Options for COGSource.open.

Properties​

concurrencyLimiter?​

optional concurrencyLimiter?: ConcurrencyLimiter | null

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

Caps concurrent HTTP requests for this COG's header and tile fetches.

Defaults to a maximum of 6 concurrent requests per origin, which aligns with browser limits of 6 HTTP/1.1 requests per origin. If your sources support HTTP/2 or HTTP/3, you may want to increase this limit or disable it entirely by passing null.

Ignored when the input is an opened GeoTIFF or an ArrayBuffer. For an opened GeoTIFF, pass the limiter to GeoTIFF.fromUrl instead.


epsgResolver?​

optional epsgResolver?: EpsgResolver

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

A function for resolving numeric EPSG codes to projection information (as returned by wkt-parser).

The default implementation:

  • resolves codes that proj4 ships definitions for without a request
  • makes a request to epsg.io to resolve other EPSG codes
  • caches any previous requests
  • parses PROJJSON response with wkt-parser

getPriority?​

optional getPriority?: () => Priority

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

Priority of this COG's queued requests. Lower values are fetched sooner. Only used with a concurrencyLimiter.

Returns​

Priority


reader?​

optional reader?: RangeReader

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

The RangeReader this COG reads through; defaults to the shared DEFAULT_RANGE_READER. Ignored for an opened GeoTIFF or an ArrayBuffer.


requestInit?​

optional requestInit?: RequestInit

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

Headers, credentials and mode sent with every request for this COG. Ignored for an opened GeoTIFF or an ArrayBuffer.


signal?​

optional signal?: AbortSignal

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

Aborts the open: header reads in flight are cancelled, and open rejects.