Skip to content

geo

0 functions / 27 types

Modules

Index

TypeDescription
AngularCoordinates
CoordinateSystemGeographic coordinates use longitude/latitude degrees. Projected coordinates use east/north native units. Geocentric coordinates use Cartesian x/y/z meters.
CrsDescriptor
CrsIdA coordinate reference system identifier, such as EPSG:3857 or IAU_2015:30100.
ElevationAn elevation in meters with an explicit vertical reference.
ElevationReferenceThe reference of a height measured in meters.
GeoPositionA geographic, projected, or geocentric position. Positions carry no orientation or scale.
GeocentricPositionCartesian XYZ in meters in the CRS’s conventional axes. This is not engine scene space.
GeographicPosition
GeoidModelIdIdentifies an immutable geoid model in this engine instance.
LinearCoordinates
MapViewModeHow the map is shown.
MediaTypeAn advertised tile media type, including any parameters.
ProjectedPosition
ProviderLayerIdA layer identifier advertised by a service, scoped to that service.
ServiceIdIdentifies a discovered service for the lifetime of this engine instance.
ServiceLayerIdIdentifies one dataset within a discovered service.
ServiceLayerSelection
StyleIdA style identifier scoped to a service layer.
TileMatrix
TileMatrixIdA tile matrix identifier scoped to its tile matrix set.
TileMatrixSet
TileMatrixSetIdA tile matrix set identifier advertised by a service.
TileUrlTemplateAn HTTP or HTTPS tile URL containing {z}, {x}, and {y}.
UnavailableTileMatrixSetA tile matrix set a layer links that cannot be drawn, because the engine cannot resolve the coordinate reference system it is declared in. Registering that system with geo.crs.register, or installing its authority’s registry file, makes the set drawable.
VerticalCrsIdA vertical CRS identifier, such as EPSG:5773. It does not load a conversion model.
VerticalDatumWhat a height is measured from. Every body and every layer uses the same two definitions.

AngularCoordinates

CoordinateSystem

type GeoCoordinateSystem = { kind: "geographic"; value: GeoAngularCoordinates } | { kind: "projected"; value: GeoLinearCoordinates } | { kind: "geocentric"; value: GeoLinearCoordinates }

Geographic coordinates use longitude/latitude degrees. Projected coordinates use east/north native units. Geocentric coordinates use Cartesian x/y/z meters.

CrsDescriptor

coordinates : GeoCoordinateSystem

crs : GeoCrsId

CrsId

A coordinate reference system identifier, such as EPSG:3857 or IAU_2015:30100.

identifier : string

Elevation

An elevation in meters with an explicit vertical reference.

meters : number

ElevationReference

The reference of a height measured in meters.

assumed : boolean

Whether the reference is a guess rather than stated. On a reported height, true when any reference the height passed through was a guess.

geoidModel optional : GeoGeoidModelId

The geoid for orthometric heights. Absent, the geoid is unknown.

verticalCrs optional : GeoVerticalCrsId

The named vertical CRS. A label alone does not provide a conversion grid.

GeoPosition

type GeoGeoPosition = { kind: "geographic"; value: GeoGeographicPosition } | { kind: "projected"; value: GeoProjectedPosition } | { kind: "geocentric"; value: GeoGeocentricPosition }

A geographic, projected, or geocentric position. Positions carry no orientation or scale.

GeocentricPosition

Cartesian XYZ in meters in the CRS’s conventional axes. This is not engine scene space.

crs : GeoCrsId

x : number

y : number

z : number

GeographicPosition

crs : GeoCrsId

elevation optional : GeoElevation

latitude : number

Degrees north.

longitude : number

Degrees east, independent of the CRS’s declared axis order.

GeoidModelId

Identifies an immutable geoid model in this engine instance.

uuid : string

LinearCoordinates

metersPerUnit : number

MapViewMode

Enum

How the map is shown.

Flat = 1

A 2D view straight down on the flat map, north up.

Globe = 0

A 3D perspective view of the globe.

MediaType

An advertised tile media type, including any parameters.

value : string

ProjectedPosition

crs : GeoCrsId

easting : number

Easting in the CRS’s native linear units.

elevation optional : GeoElevation

northing : number

Northing in the CRS’s native linear units.

ProviderLayerId

A layer identifier advertised by a service, scoped to that service.

value : string

ServiceId

Identifies a discovered service for the lifetime of this engine instance.

uuid : string

ServiceLayerId

Identifies one dataset within a discovered service.

identifier : string

service : GeoServiceId

ServiceLayerSelection

format optional : GeoMediaType

style optional : GeoStyleId

tileMatrixSet optional : GeoTileMatrixSetId

StyleId

A style identifier scoped to a service layer.

value : string

TileMatrix

identifier : GeoTileMatrixId

matrixHeight : number

matrixWidth : number

scaleDenominator : number

tileHeight : number

tileWidth : number

topLeftEast : number

The west edge in CRS native units, with normalized east/north axis order.

topLeftNorth : number

The north edge in CRS native units, with normalized east/north axis order.

TileMatrixId

A tile matrix identifier scoped to its tile matrix set.

value : string

TileMatrixSet

crs : GeoCrsId

identifier : GeoTileMatrixSetId

matrices optional : Array<GeoTileMatrix>

TileMatrixSetId

A tile matrix set identifier advertised by a service.

value : string

TileUrlTemplate

An HTTP or HTTPS tile URL containing {z}, {x}, and {y}.

value : string

UnavailableTileMatrixSet

A tile matrix set a layer links that cannot be drawn, because the engine cannot resolve the coordinate reference system it is declared in. Registering that system with geo.crs.register, or installing its authority’s registry file, makes the set drawable.

error : string

Why the set’s coordinate reference system did not resolve, naming the system.

identifier : GeoTileMatrixSetId

VerticalCrsId

A vertical CRS identifier, such as EPSG:5773. It does not load a conversion model.

identifier : string

VerticalDatum

Enum

What a height is measured from. Every body and every layer uses the same two definitions.

Ellipsoidal = 1

Height above the body’s reference figure: the map surface’s ellipsoid, which is a sphere when both its radii are equal.

Orthometric = 0

Height above the body’s geoid, such as the Earth’s mean sea level or the Mars areoid. Placing it takes a geoid model.