ElevationTile

class ElevationTile(val width: Int, val height: Int, val elevations: FloatArray)(source)

A decoded elevation grid in meters, row-major with (0,0) at the image's top-left — the same orientation as the source tile's own pixels, and as org.meshtastic.app.map.offline.pmtiles.WebMercatorTileMath's tile-local Y (top-to-bottom, matching XYZ tile convention).

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, elevations: FloatArray)

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun elevationAt(x: Int, y: Int): Float

Nearest-sample elevation at pixel x, y, clamped to the tile's own edge outside its bounds.