Skip to main content

flywave-terrain-datasource.terraintiledecoder.decodetile

Home > @flywave/flywave-terrain-datasource > TerrainTileDecoder > decodeTile

TerrainTileDecoder.decodeTile() method

Decodes a terrain tile based on its type This is the main decoding function that handles different terrain data formats It dispatches to specialized processing functions based on the task type

Signature:

decodeTile(data: {
type: TaskType;
&#125; & Record<string, unknown>, tileKey: TileKey, projection: Projection, requestController?: RequestController): Promise<DecodedTile | undefined>;

Parameters

Parameter

Type

Description

data

{ type: TaskType; } & Record<string, unknown>

The data to decode, including the task type and format-specific data

tileKey

TileKey

The key identifying the tile being decoded

projection

Projection

The projection used for the tile

requestController

RequestController

(Optional) Optional controller for managing the decode request

Returns:



Promise&lt;DecodedTile \| undefined&gt;

A promise that resolves to a DecodedTile or undefined

## Exceptions

Error if the task type is not supported