Skip to main content

flywave-terrain-datasource.demterrainsource

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

DEMTerrainSource class

DEM (Digital Elevation Model) terrain data source

This class implements a terrain data source that loads and renders DEM data for 3D terrain visualization. It extends the base TerrainSource class and provides specialized functionality for handling digital elevation models.

The source supports various DEM formats and can load data from different providers using the DemTileProvider. It also provides elevation and elevation range services for querying height information at specific geographic coordinates.

Signature:

export declare class DEMTerrainSource extends TerrainSource<DemTileProvider> 

Extends: TerrainSource<DemTileProvider>

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Creates a new DEM terrain source instance

Methods

Method

Modifiers

Description

createElevationProvider()

protected

Creates an elevation provider for this terrain source

This method creates and returns an ElevationProvider instance that can provide elevation values at specific geographic coordinates. This is used for features like ray casting and height queries.

createElevationRangeSource()

protected

Creates an elevation range source for this terrain source

This method creates and returns an ElevationRangeSource instance that can provide minimum and maximum elevation values for specific tiles. This is used for frustum culling and other optimizations in the rendering pipeline.

getTerrainLevelRange()

protected

Gets the terrain level range supported by this data source

This method returns the minimum and maximum zoom levels supported by the underlying DEM data provider. This information is used to determine when to subdivide tiles and when to stop loading higher resolution data.