Skip to main content

OGC coverage service

Request the coverage data behind the map.

WCS provides analytical raster coverages rather than server-rendered map images. The source discovers the service, builds version-aware subset requests, and preserves binary responses for the appropriate decoder.

loaders.gl support​

TypeAPI
Source loaderWCSCoverageLoader

The WCS request path

Read the coverage metadata. Select a subset. Decode the result.

WCS keeps coverage values and request dimensions explicit. Use the source to form the service request, then choose whether the returned representation should remain binary or become analysis-ready pixels.

Discover

Coverages, bounds, formats, axes, and CRS

Subset

Bounding boxes, dimensions, and explicit axes

Request

Version-aware `GetCoverage` parameters

Decode

GeoTIFF, LERC, or another binary coverage loader

WCS provides analytical geospatial coverages rather than server-rendered map images. WCSCoverageLoader supports focused discovery and read-only coverage retrieval.

Detailed guide

Coverage request and decoding details

The reference below covers capabilities, subsets, CRS selection, binary responses, LERC decoding, and request customization.

Feature support​

CapabilitySupportAPI and behavior
GetCapabilities✅ SupportedParses service metadata and advertised coverage summaries
Normalized metadata✅ SupportedgetMetadata() returns title, identifiers, formats, and bounds
GetCoverage✅ SupportedReturns the requested binary coverage representation
WCS 2.x subsets✅ Supportedbbox is converted to repeated axis subset expressions
WCS 1.x bounding boxes✅ SupportedLegacy bbox, crs, and responseCRS parameters are generated
Explicit subset expressions✅ SupportedPass one or more server-specific subset values
Output dimensions✅ SupportedWidth and height are forwarded when accepted by the service
CRS selection✅ SupportedRequest and response CRS parameters are version-aware
GeoTIFF and other binary formats✅ PreservedReturned as ArrayBuffer for decoding by the appropriate loader
LERC✅ DecodedReturns typed per-band arrays, masks, NoData, and statistics
DescribeCoverage❌ Not exposedUse a custom request when detailed range metadata is required
Coverage processing❌ Not providedResampling, algebra, and colorization remain application concerns
deck.gl rendering⚠️ ExplicitDecode the format and choose a raster visualization policy first

Retrieve a coverage​

import {createDataSourceSync} from '@loaders.gl/core';
import {WCSCoverageLoader} from '@loaders.gl/ogc/wms';

const source = createDataSourceSync('https://example.com/wcs', [WCSCoverageLoader], {
wcs: {
version: '2.0.1',
coverageId: 'elevation',
format: 'image/tiff'
}
});

const metadata = await source.getMetadata();
const coverage = await source.getCoverage({
bbox: [-10, 40, 10, 50],
crs: 'http://www.opengis.net/def/crs/EPSG/0/4326'
});

Binary formats are intentionally preserved. For example, pass a GeoTIFF ArrayBuffer to the TIFF loader when decoded pixels are required.

Analytical LERC​

When the requested format contains lerc, the response is decoded through @loaders.gl/raster/lerc:

const raster = await source.getCoverage({
coverageId: 'temperature',
bbox: [-10, 40, 10, 50],
format: 'image/lerc'
});

if (!(raster instanceof ArrayBuffer)) {
console.log(raster.width, raster.height, raster.pixels, raster.mask);
}

The returned values are analysis-ready. loaders.gl does not infer a color ramp or alter numerical values merely to make them displayable.

Request customization​

Use wcs.parameters for source-wide vendor defaults and parameters on getCoverage() for one request. Repeated subset values are encoded separately, as required by WCS 2.x.

References​