GpkgCachedElevationDataFactory

Per-tile implementation of the ElevationSource.ElevationDataFactory contract. Lives for a single (z, x, y) read.

fetchElevationData() is the only entry point — it tries the gpkg first, falls through to GpkgCachedElevationSourceFactory.networkSource on a miss, and write-through-encodes the network buffer to the gpkg in the storage layout chosen at coverage creation.

Constructors

Link copied to clipboard
constructor(parent: GpkgCachedElevationSourceFactory, zoomLevel: Int, tileColumn: Int, tileRow: Int)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Cache-only read (no network): the decoded Buffer on a cache hit, or null on a miss or decode failure. Lets a coverage serve cached tiles without consuming a network retrieval slot. Mirrors the best-effort decode handling in fetchElevationData.

Link copied to clipboard
open suspend override fun fetchElevationData(): Buffer?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String