I3sWebMercator

Web Mercator (EPSG:3857) support for projected-CRS I3S layers: detection plus the spherical metre↔degree conversions the standard defines. Projected packages store OBB centers and vertex offsets in Mercator metres; x is linear in longitude while y needs the exact inverse projection (linearizing y across a node drifts tens of centimetres at mid latitudes).

Properties

Link copied to clipboard
const val RADIUS: Double = 6378137.0

EPSG:3857 sphere radius (the WGS84 semi-major axis).

Functions

Link copied to clipboard

Layer's horizontal CRS is Web Mercator — from spatialReference.wkid/latestWkid, falling back to the store CRS URLs (…/EPSG/0/{wkid}) some packages carry instead.

Link copied to clipboard
fun latitudeRadiansToY(latitudeRadians: Double): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard