GeoBounds

data class GeoBounds(val south: Double, val west: Double, val north: Double, val east: Double)(source)

A geographic bounding box, degrees.

Constructors

Link copied to clipboard
constructor(south: Double, west: Double, north: Double, east: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun GeoBounds.expandedForTerrain(ratio: Double = 0.15, minPadMeters: Double): GeoBounds

Pads each side by max(minPadMeters, ratio × the box's size) and snaps outward to z10 tile edges, so small moves of the mesh give the same area and nothing is downloaded again.

Link copied to clipboard
Link copied to clipboard

Width and height in meters, measured across the middle of the box.

Link copied to clipboard