Table of Contents

Namespace LansMap.Core.Geo

Classes

GeoMath

Geodesic distance helpers for map tools such as measuring and headings.

GeoUtils

Geographic utilities for building map features: bearings, destinations, path math, bounds fitting and point-in-polygon.

WebMercator

Converts between WGS84 degrees and normalized Web Mercator, plus tile addresses.

WorldWrap

Horizontal wrap helpers: longitude is periodic, and mercator X wraps with period 1.

Structs

GeoBounds

An axis-aligned latitude/longitude box, in degrees WGS84.

LatLon

A WGS84 geographic coordinate in degrees, validated at construction.

LatLonAltitude

A geographic position with altitude, one item of a 3D path (a measured line, a trail, an imported track).

MercatorBounds

An axis-aligned rectangle in normalized mercator that can stay unwrapped across the antimeridian.

MercatorPoint

A position in normalized Web Mercator space, where the whole world is the unit square: (0,0) is the top-left corner (latitude +85.05, longitude -180) and (1,1) the bottom-right.

MercatorRect

A square extent in normalized Web Mercator, typically a tile footprint.

ScreenPoint

A position in screen pixels, origin at the top-left with Y increasing downward.

ScreenSize

A viewport size in pixels, validated non-zero.

ZoomLevel

An integer tile zoom level, validated at construction.