TileSourceElevationRef

data class TileSourceElevationRef(val source: TileSource, val z: Int, val x: Int, val y: Int, val outputFormat: String)

Adapter that lets an ElevationSource carry a TileSource reference + decode format.

Lives on every platform — each earth.worldwind.globe.elevation.coverage.TiledElevationCoverage actual unwraps the ref via elevationSource.asUnrecognized() is TileSourceElevationRef, fetches bytes through source's fetchTile(z, x, y), then dispatches the bytes to the platform's existing elevation decoder using outputFormat (e.g. application/bil16, application/bil32, image/tiff).

Decouples "where do the bytes come from" (a TileSource, optionally cached by earth.worldwind.layer.cache.CachedTileSource) from "how are the bytes turned into a ShortArray" (per-platform decoder, dispatched by outputFormat).

Constructors

Link copied to clipboard
constructor(source: TileSource, z: Int, x: Int, y: Int, outputFormat: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int
Link copied to clipboard
val z: Int