跳到主要内容

flywave-terrain-datasource.terraintiledecoder

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

TerrainTileDecoder class

Terrain tile decoder implementation This class handles decoding of various terrain data formats in a web worker context It supports multiple terrain formats including quantized meshes, stratum tiles, and DEM data

The decoder implements the ITileDecoder interface which is part of the mapview decoder system

Signature:

export declare class TerrainTileDecoder implements ITileDecoder 

Implements: ITileDecoder

Methods

Method

Modifiers

Description

configure(options, customOptions)

Configures the decoder with options This is a placeholder implementation as this decoder doesn't require configuration

connect()

Establishes connection for the decoder This is a placeholder implementation that immediately resolves In more complex decoders, this might establish connections to external services

decodeTile(data, tileKey, projection, requestController)

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

dispose()

Disposes of the decoder and cleans up resources This is a placeholder implementation as this decoder doesn't hold any resources that need explicit cleanup

getTileInfo(data, tileKey, projection)

Retrieves information about a tile without fully decoding it This implementation returns undefined as we don't currently extract tile info