Companion

object Companion

Properties

Link copied to clipboard
const val SERVICE_TYPE: String

Service-type tag persisted in gpkg_web_service.service_type when caching an MVT layer with a service association. Read by GpkgContentManager to decide how to rebuild the source at content-getter time.

Link copied to clipboard
const val SURFACE_Z_ORDER: Double = 0.0

Shared surface-bin z for all MVT draped content; per-feature z stays an intra-tile sort key so layer order places MVT against other layers.

Link copied to clipboard
const val TILE_PIXEL_SIZE: Int = 256

Standard slippy-tile pixel width — the input to camera-altitude → zoom matching.

Functions

Link copied to clipboard
fun decodeHeaders(metadata: String?): Map<String, String>

Inverse of encodeHeaders; malformed/absent metadata decodes to no headers.

Link copied to clipboard

Round-trips the source's request headers through WebServiceInfo.metadata so cache reopen rebuilds the network source with them (e.g. the User-Agent OSM's tile policy requires) — the persisted URL template alone loses them. Null when there are none.

Link copied to clipboard
fun tileToSector(zoom: Int, x: Int, y: Int): Sector