SpatialTerrainCoverage

How much of a box the downloaded terrain covers.

Functions

Link copied to clipboard
fun fraction(box: GeoBounds, sources: List<GeoBounds>, samples: Int = 24): Double

Fraction of box covered by any of sources, sampled on an (n+1)×(n+1) lattice that includes the box's edges, so a thin uncovered strip along an edge is never missed.