The service boundary
Use the service’s identifiers without guessing.
Capabilities documents may list URNs, EPSG codes, CRS:84, or provider-specific matrix identifiers. The helpers provide normalized comparisons while leaving final request construction to the service metadata.
Normalize
Equivalent service CRS spellings
Select
A compatible CRS from advertised values
Axis order
Common geographic and projected conventions
Tile grids
Matrix identifiers and linked CRS metadata
Detailed guide
CRS and tile-grid reference
The sections below document the helpers and how WMS/WMTS sources use them with capabilities metadata.
The WMS package exposes utilities for services that use different CRS spellings:
import {normalizeServiceCRS, selectServiceCRS} from '@loaders.gl/ogc/wms';
normalizeServiceCRS('urn:ogc:def:crs:EPSG::3857'); // 'EPSG:3857'
selectServiceCRS('EPSG:3857', ['EPSG:4326', 'EPSG:3857']); // 'EPSG:3857'
WMTSImageTileSource uses these rules when capabilities list multiple linked tile matrix sets.
Set wmts.crs to select the compatible matrix set, and the source uses the matrix's declared
identifier (for example L04) rather than assuming that a zoom level is its identifier.
The axis-order helper reports the conventional service order for the common geographic CRS:
EPSG:4326 is yx, while CRS:84 and projected CRSs are xy. Applications should still follow
the individual service's capabilities when constructing coordinate arrays.
The shared VectorSource contract keeps application geometry and bounding boxes in canonical xy
order. For feature queries, pass requestCrs when the input bounding box uses a CRS different from
the output crs; WFS and OGC API adapters translate the canonical values to their wire-axis rules.
For a cross-format explanation of geometry, addressing, and availability, see Tile matrices and tile matrix sets.