Skip to content

API Reference

Classes



EndpointError

js
import { EndpointError } from '@camptocamp/ogc-client'

📦 Constructor

        new EndpointError(message: string, httpStatus: number, isCrossOriginRelated: boolean)
      
ParameterTypeDescription
messagestring
httpStatusnumber
isCrossOriginRelatedboolean

🌱️ Extends




NcwmsEndpoint

js
import { NcwmsEndpoint } from '@camptocamp/ogc-client'

Represents an NcWMS endpoint, a WMS extension for scientific data with additional rendering parameters (color palette, scale range, log scale).

NcWMS is used by servers such as Thredds, ERDDAP, BODC and CMEMS.

📦 Constructor

        new NcwmsEndpoint(url: string)
      
ParameterTypeDescription
urlstring

🌱️ Extends

⚡️ Methods


getLayerDetails()
        getLayerDetails(layerName: string): Promise<NcwmsLayerDetails>
      
ParameterTypeDescription
layerNamestring

Layer name as declared in GetCapabilities

Return typeDescription
Promise<NcwmsLayerDetails>

Fetches NcWMS layer metadata. Returns null if the server does not expose NcWMS-specific metadata for this layer.


getLegendUrl()
        getLegendUrl(layerName: string, options: undefined): string
      
ParameterTypeDescription
layerNamestring

Layer name

options

Style and rendering options

Return typeDescription
string

Builds a GetLegendGraphic URL for the layer. No network request is made.


getMinMax()
        getMinMax(layerName: string, bbox: BoundingBox, options: undefined): Promise<NcwmsMinMax>
      
ParameterTypeDescription
layerNamestring

Layer name

bboxBoundingBox

Bounding box [west, south, east, north] in CRS:84

options

Optional TIME and ELEVATION values

Return typeDescription
Promise<NcwmsMinMax>

Fetches the approximate min/max data range for the given extent. NcWMS computes this from a downsampled GetMap request.




OgcApiEndpoint

js
import { OgcApiEndpoint } from '@camptocamp/ogc-client'

Represents an OGC API endpoint advertising various collections and services.

📦 Constructor

        new OgcApiEndpoint(baseUrl: string)
      
ParameterTypeDescription
baseUrlstring

Base URL used to query the endpoint. Note that this can point to nested documents inside the endpoint, such as /collections, /collections/items etc.

Creates a new OGC API endpoint.

💡 Accessors

AccessorTypeDescription
allCollectionsPromise<undefined[]>

A Promise which resolves to an array of all collection identifiers as strings.

conformanceClassesPromise<string[]>

A Promise which resolves to an array of conformance classes.

edrCollectionsPromise<string[]>
featureCollectionsPromise<string[]>

A Promise which resolves to an array of feature collection identifiers as strings.

hasEnvironmentalDataRetrievalPromise<boolean>

A Promise which resolves to a boolean indicating whether the endpoint offers environmental data retrieval (EDR) queries.

hasFeaturesPromise<boolean>

A Promise which resolves to a boolean indicating whether the endpoint offer feature collections.

hasRecordsPromise<boolean>

A Promise which resolves to a boolean indicating whether the endpoint offer record collections.

hasStylesPromise<boolean>

A Promise which resolves to a boolean indicating whether the endpoint offer styles.

hasTilesPromise<boolean>

A Promise which resolves to a boolean indicating whether the endpoint offer tiles.

infoPromise<OgcApiEndpointInfo>

A Promise which resolves to the endpoint information.

mapTileCollectionsPromise<string[]>

A Promise which resolves to an array of map tile collection identifiers as strings.

recordCollectionsPromise<string[]>

A Promise which resolves to an array of records collection identifiers as strings.

tileMatrixSetsPromise<string[]>

Retrieve the tile matrix sets identifiers advertised by the endpoint. Empty if tiles are not supported

vectorTileCollectionsPromise<string[]>

A Promise which resolves to an array of vector tile collection identifiers as strings.

⚡️ Methods


allStyles()
        allStyles(collectionId: string): Promise<OgcStyleBrief[]>
      
ParameterTypeDescription
collectionIdstring

Optional unique identifier for the collection.

Return typeDescription
Promise<OgcStyleBrief[]>

A Promise which resolves to an array of all style items. This includes the supported style formats.


edr()
        edr(collection_id: string): Promise<EDRQueryBuilder>
      
ParameterTypeDescription
collection_idstring
Return typeDescription
Promise<EDRQueryBuilder>

getCollectionInfo()
        getCollectionInfo(collectionId: string): Promise<OgcApiCollectionInfo>
      
ParameterTypeDescription
collectionIdstring
Return typeDescription
Promise<OgcApiCollectionInfo>

Returns a promise resolving to a document describing the specified collection.


getCollectionItem()
        getCollectionItem(collectionId: string, itemId: string): Promise<OgcApiRecord>
      
ParameterTypeDescription
collectionIdstring
itemIdstring
Return typeDescription
Promise<OgcApiRecord>

Returns a promise resolving to a specific item from a collection.


getCollectionItems()
        getCollectionItems(collectionId: string, limit: number, offset: number, skipGeometry: boolean, sortBy: string[], boundingBox: BoundingBox, properties: string[], dateTime: DateTimeParameter, query: string): Promise<OgcApiRecord[]>
      
ParameterTypeDescription
collectionIdstring
limitnumber
offsetnumber
skipGeometryboolean
sortBystring[]
boundingBoxBoundingBox
propertiesstring[]
dateTimeDateTimeParameter
querystring

Freeform query string appended to the URL when fetching items (will be URL-encoded if necessary)

Return typeDescription
Promise<OgcApiRecord[]>

Returns a promise resolving to an array of items from a collection with the given query parameters.


getCollectionItemsUrl()
        getCollectionItemsUrl(collectionId: string, options: undefined): Promise<string>
      
ParameterTypeDescription
collectionIdstring

The unique identifier for the collection.

options

An object containing optional parameters:

  • query: Additional query parameters to be included in the URL.
  • asJson: Will query items as GeoJson or JSON-FG if available; takes precedence on outputFormat.
  • outputFormat: The MIME type for the output format.
  • limit: The maximum number of features to include.
  • extent: Bounding box to limit the features.
  • offset: Pagination offset for the returned results.
  • outputCrs: Coordinate Reference System code for the output.
  • extentCrs: Coordinate Reference System code for the bounding box.
  • skipGeometry: whether to include geometry in the response or not
  • sortBy: attributes by which to sort
  • properties: which properties to include in the response.
  • dateTime: Date parameter, either as a Date object or a range object with start and end properties.
Return typeDescription
Promise<string>

A promise that resolves to the URL as a string or rejects if an error occurs.

Asynchronously retrieves a URL for the items of a specified collection, with optional query parameters.


getMapTilesetUrl()
        getMapTilesetUrl(collectionId: string, tileMatrixSet: string): Promise<string>
      
ParameterTypeDescription
collectionIdstring

The unique identifier for the collection.

tileMatrixSetstring

The identifier of the tile matrix set to use. Default is 'WebMercatorQuad'.

Return typeDescription
Promise<string>

Asynchronously retrieves a URL to render a specified collection as map tiles, with a given tile matrix set.


getStyle()
        getStyle(styleId: string, collectionId: string): Promise<OgcStyleFull | OgcStyleBrief>
      
ParameterTypeDescription
styleIdstring

The style identifier

collectionIdstring

Optional unique identifier for the collection.

Return typeDescription
Promise<OgcStyleFull | OgcStyleBrief>

Returns a promise resolving to a document describing the style. Looks for a relation of type "describedby" to fetch metadata. If no relation is found, only basic info will be returned.


getStylesheetUrl()
        getStylesheetUrl(styleId: string, mimeType: string, collectionId: string): Promise<string>
      
ParameterTypeDescription
styleIdstring

The style identifier

mimeTypestring

Stylesheet MIME type

collectionIdstring

Optional unique identifier for the collection.

Return typeDescription
Promise<string>

Returns a promise resolving to a stylesheet URL for a given style and type.


getVectorTilesetUrl()
        getVectorTilesetUrl(collectionId: string, tileMatrixSet: string): Promise<string>
      
ParameterTypeDescription
collectionIdstring

The unique identifier for the collection.

tileMatrixSetstring

The identifier of the tile matrix set to use. Default is 'WebMercatorQuad'.

Return typeDescription
Promise<string>

Asynchronously retrieves a URL to render a specified collection as vector tiles, with a given tile matrix set.




ServiceExceptionError

js
import { ServiceExceptionError } from '@camptocamp/ogc-client'

Representation of an Exception reported by an OWS service

This is usually contained in a ServiceExceptionReport or ExceptionReport document and represented as a ServiceException or Exception element

📦 Constructor

        new ServiceExceptionError(message: string, requestUrl: string, code: string, locator: string, response: XmlDocument)
      
ParameterTypeDescription
messagestring

Error message

requestUrlstring

URL which resulted in the ServiceException

codestring

Optional ServiceException code

locatorstring

Optional ServiceException locator

responseXmlDocument

Optional response content received

Constructor

🌱️ Extends




StacEndpoint

js
import { StacEndpoint } from '@camptocamp/ogc-client'

Represents a STAC API endpoint for querying collections and items. STAC API is based on OGC API - Features.

📦 Constructor

        new StacEndpoint(baseUrl: string)
      
ParameterTypeDescription
baseUrlstring

Base URL of the STAC API (landing page)

Creates a new STAC API endpoint

💡 Accessors

AccessorTypeDescription
allCollectionsPromise<string[]>

Returns array of all collection IDs

catalogPromise<StacCatalog>

Returns the root catalog

conformanceClassesPromise<string[]>

Returns array of conformance class URIs

infoPromise<StacEndpointInfo>

Returns endpoint information from the landing page

isStacApiPromise<boolean>

Checks if the endpoint supports STAC API Core

supportsOgcFeaturesPromise<boolean>

Checks if the endpoint supports OGC API Features

⚡️ Methods


getCollection()
        getCollection(collectionId: string): Promise<StacCollection>
      
ParameterTypeDescription
collectionIdstring

The collection identifier

Return typeDescription
Promise<StacCollection>

Promise resolving to StacCollection

Retrieves detailed information about a specific collection


getCollectionItem()
        getCollectionItem(collectionId: string, itemId: string): Promise<StacItem>
      
ParameterTypeDescription
collectionIdstring

The collection identifier

itemIdstring

The item identifier

Return typeDescription
Promise<StacItem>

Promise resolving to StacItem

Retrieves a single item from a collection


getCollectionItems()
        getCollectionItems(collectionId: string, options: GetCollectionItemsOptions): Promise<StacItem[]>
      
ParameterTypeDescription
collectionIdstring

The collection identifier

optionsGetCollectionItemsOptions

Query options (limit, bbox, datetime, etc.)

Return typeDescription
Promise<StacItem[]>

Promise resolving to array of StacItem objects

Retrieves items from a collection with optional filtering


getCollectionItemsResponse()
        getCollectionItemsResponse(collectionId: string, options: GetCollectionItemsOptions): Promise<StacItemsDocument>
      
ParameterTypeDescription
collectionIdstring

The collection identifier

optionsGetCollectionItemsOptions

Query options (limit, bbox, datetime, etc.)

Return typeDescription
Promise<StacItemsDocument>

Promise resolving to full StacItemsDocument with links

Retrieves items response document including links for pagination Use this method when you need access to pagination links (rel="next") or metadata


getCollectionItemsUrl()
        getCollectionItemsUrl(collectionId: string, options: GetCollectionItemsOptions): Promise<string>
      
ParameterTypeDescription
collectionIdstring

The collection identifier

optionsGetCollectionItemsOptions

Query options

Return typeDescription
Promise<string>

Promise resolving to the constructed URL

Builds a URL for querying collection items with filters


fromUrl()
        fromUrl(url: string): Promise< |  | >
      
ParameterTypeDescription
urlstring

Direct URL to any STAC document

Return typeDescription
Promise< | | >

Promise resolving to typed resource with discriminator

Fetches and auto-detects a STAC resource from any URL Automatically detects whether the URL points to a Catalog, Collection, or Item


getItemsFromCollection()
        getItemsFromCollection(collection: StacCollection, options: GetCollectionItemsOptions): Promise<StacItemsDocument>
      
ParameterTypeDescription
collectionStacCollection

StacCollection object

optionsGetCollectionItemsOptions

Query options (limit, bbox, datetime, etc.)

Return typeDescription
Promise<StacItemsDocument>

Promise resolving to StacItemsDocument with features and pagination links

Queries items from a collection object with optional filtering


getItemsFromUrl()
        getItemsFromUrl(itemsUrl: string, options: GetCollectionItemsOptions): Promise<StacItemsDocument>
      
ParameterTypeDescription
itemsUrlstring

Direct URL to a STAC collection items endpoint

optionsGetCollectionItemsOptions

Query options (limit, bbox, datetime, etc.)

Return typeDescription
Promise<StacItemsDocument>

Promise resolving to StacItemsDocument with features and pagination links

Queries items from a collection items URL with optional filtering Applies filters directly to the provided items endpoint URL




TmsEndpoint

js
import { TmsEndpoint } from '@camptocamp/ogc-client'

Represents a TMS (Tile Map Service) endpoint for accessing tile map services. Handles fetching and processing TMS data from a given URL.

📦 Constructor

        new TmsEndpoint(baseUrl: string)
      
ParameterTypeDescription
baseUrlstring

💡 Accessors

AccessorTypeDescription
allTileMapsPromise<TileMapReference[]>

Retrieves all available tile maps from the TMS service. If the endpoint points to a specific tile map, only that tile map will be returned.

tileMapServiceInfoPromise<TmsEndpointInfo>

Retrieves basic information about the TMS endpoint, including title, abstract, and keywords.

⚡️ Methods


getTileMapInfo()
        getTileMapInfo(href: string): Promise<TileMapInfo>
      
ParameterTypeDescription
hrefstring

The URL of the tile map resource to retrieve

Return typeDescription
Promise<TileMapInfo>

Promise resolving to the detailed tile map information

Retrieves detailed information about a specific tile map.




WfsEndpoint

js
import { WfsEndpoint } from '@camptocamp/ogc-client'

Represents a WFS endpoint advertising several feature types.

Always use the class like so to make sure that all its internals are correctly initialized:

js
const endpoint = await new WfsEndpoint(url).isReady();

📦 Constructor

        new WfsEndpoint(url: string)
      
ParameterTypeDescription
urlstring

WFS endpoint url; can contain any query parameters, these will be used to initialize the endpoint

Creates a new WFS endpoint; wait for the isReady() promise before using the endpoint methods.

⚡️ Methods


getCapabilitiesUrl()
        getCapabilitiesUrl(): string
      
Return typeDescription
string

Returns the Capabilities URL of the WFS

This is the URL reported by the service if available, otherwise the URL passed to the constructor


getFeatureTypeFull()
        getFeatureTypeFull(name: string): Promise<WfsFeatureTypeFull>
      
ParameterTypeDescription
namestring

Feature type name property (unique in the WFS service)

Return typeDescription
Promise<WfsFeatureTypeFull>

return null if layer was not found or endpoint is not ready

Returns the complete feature type. If a namespace is specified in the name, this will be used for matching; otherwise, matching will be done without taking namespaces into account.


getFeatureTypePropDetails()
        getFeatureTypePropDetails(name: string): Promise<WfsFeatureTypePropsDetails>
      
ParameterTypeDescription
namestring

Feature type name property (unique in the WFS service)

Return typeDescription
Promise<WfsFeatureTypePropsDetails>

return null if layer was not found or endpoint is not ready

Returns a promise that will resolve with details on each of the feature type properties; for now, this consists of a list of unique values in the whole dataset.


getFeatureTypes()
        getFeatureTypes(): WfsFeatureTypeBrief[]
      
Return typeDescription
WfsFeatureTypeBrief[]

Returns an array of feature types


getFeatureTypeSummary()
        getFeatureTypeSummary(name: string): WfsFeatureTypeSummary
      
ParameterTypeDescription
namestring

Feature type name property (unique in the WFS service)

Return typeDescription
WfsFeatureTypeSummary

return null if layer was not found or endpoint is not ready

Returns the feature type in summary format. If a namespace is specified in the name, this will be used for matching; otherwise, matching will be done without taking namespaces into account.


getFeatureUrl()
        getFeatureUrl(featureType: string, options: WfsGetFeatureOptions): string
      
ParameterTypeDescription
featureTypestring
optionsWfsGetFeatureOptions
Return typeDescription
string

Returns null if endpoint is not ready

Returns a URL that can be used to query features from this feature type.


getOperationUrl()
        getOperationUrl(operationName: string, method: HttpMethod): string
      
ParameterTypeDescription
operationNamestring

e.g. GetFeature, GetCapabilities, etc.

methodHttpMethod

HTTP method

Return typeDescription
string

Returns the URL reported by the WFS for the given operation


getServiceInfo()
        getServiceInfo(): GenericEndpointInfo
      
Return typeDescription
GenericEndpointInfo

A Promise which resolves to the endpoint information.


getSingleFeatureTypeName()
        getSingleFeatureTypeName(): string
      
Return typeDescription
string

If only one single feature type is available, return its name; otherwise, returns null;


getVersion()
        getVersion(): WfsVersion
      
Return typeDescription
WfsVersion

Returns the highest protocol version that this WFS endpoint supports. Note that if the url used for initialization does specify a version (e.g. 1.0.0), this version will most likely be used instead of the highest supported one.


isReady()
        isReady(): Promise<WfsEndpoint>
      
Return typeDescription
Promise<WfsEndpoint>

This should be called before any other method to initialize the endpoint!

Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience.


supportsJson()
        supportsJson(featureType: string): boolean
      
ParameterTypeDescription
featureTypestring
Return typeDescription
boolean

Returns true if the given feature type can be downloaded as GeoJSON


supportsStartIndex()
        supportsStartIndex(): boolean
      
Return typeDescription
boolean

Returns true if the WFS service supports the startIndex parameter.




WmsEndpoint

js
import { WmsEndpoint } from '@camptocamp/ogc-client'

Represents a WMS endpoint advertising several layers arranged in a tree structure.

Always use the class like so to make sure that all its internals are correctly initialized:

js
const endpoint = await new WmsEndpoint(url).isReady();

📦 Constructor

        new WmsEndpoint(url: string)
      
ParameterTypeDescription
urlstring

WMS endpoint url; can contain any query parameters, these will be used to initialize the endpoint

⚡️ Methods


describeLayer()
        describeLayer(layerName: string): Promise<WmsLayerDescription>
      
ParameterTypeDescription
layerNamestring

Layer name to describe

Return typeDescription
Promise<WmsLayerDescription>

Returns null if the endpoint is not ready or does not advertise DescribeLayer

Performs a DescribeLayer request for the given layer and returns its description, including the underlying OWS type (e.g. "WFS" for vector data).


getCapabilitiesUrl()
        getCapabilitiesUrl(): string
      
Return typeDescription
string

Returns the Capabilities URL of the WMS

This is the URL reported by the service if available, otherwise the URL passed to the constructor


getFlattenedLayers()
        getFlattenedLayers(): any[]
      
Return typeDescription
any[]

Returns a array of layers, same as WmsEndpoint.getLayers(), but flattened


getLayerByName()
        getLayerByName(name: string): WmsLayerFull
      
ParameterTypeDescription
namestring

Layer name property (unique in the WMS service)

Return typeDescription
WmsLayerFull

return null if layer was not found

Returns the full layer information, including supported coordinate systems, available layers, bounding boxes etc. Layer name is case-sensitive.


getLayers()
        getLayers(): WmsLayerSummary[]
      
Return typeDescription
WmsLayerSummary[]

Returns an array of layers in summary format; layers are organized in a tree structure with each having an optional children property


getMapUrl()
        getMapUrl(layers: string[], options: undefined): string
      
ParameterTypeDescription
layersstring[]

List of layers to render

options
Return typeDescription
string

Returns null if endpoint is not ready

Returns a URL that can be used to query an image from one or several layers


getOperationUrl()
        getOperationUrl(operationName: string, method: HttpMethod): string
      
ParameterTypeDescription
operationNamestring

e.g. GetMap, GetCapabilities, etc.

methodHttpMethod

HTTP method

Return typeDescription
string

Returns the URL reported by the WMS for the given operation


getServiceInfo()
        getServiceInfo(): GenericEndpointInfo
      
Return typeDescription
GenericEndpointInfo

Returns the service information.


getSingleLayerName()
        getSingleLayerName(): string
      
Return typeDescription
string

If only one single renderable layer is available, return its name; otherwise, returns null;


getVersion()
        getVersion(): WmsVersion
      
Return typeDescription
WmsVersion

Returns the highest protocol version that this WMS endpoint supports. Note that if the url used for initialization does specify a version (e.g. 1.1.0), this version will most likely be used instead of the highest supported one.


isReady()
        isReady(): Promise<WmsEndpoint>
      
Return typeDescription
Promise<WmsEndpoint>

This should be called before any other method to initialize the endpoint!

Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience.




WmtsEndpoint

js
import { WmtsEndpoint } from '@camptocamp/ogc-client'

Represents a WMTS endpoint advertising several layers.

Always use the class like so to make sure that all its internals are correctly initialized:

js
const endpoint = await new WmtsEndpoint(url).isReady();

📦 Constructor

        new WmtsEndpoint(url: string)
      
ParameterTypeDescription
urlstring

WMTS endpoint url; can contain any query parameters, these will be used to initialize the endpoint

Creates a new WMTS endpoint; wait for the isReady() promise before using the endpoint methods.

⚡️ Methods


getDefaultDimensions()
        getDefaultDimensions(layerName: string): Record<string, WmtsLayerDimensionValue>
      
ParameterTypeDescription
layerNamestring
Return typeDescription
Record<string, WmtsLayerDimensionValue>

Return an object with all defined dimensions for the layer, as well as their default values.


getLayerByName()
        getLayerByName(name: string): WmtsLayer
      
ParameterTypeDescription
namestring

Layer name property

Return typeDescription
WmtsLayer

return null if layer was not found

Returns a complete layer based on its name Note: the first matching layer will be returned


getLayerResourceLink()
        getLayerResourceLink(layerName: string, formatHint: string): WmtsLayerResourceLink
      
ParameterTypeDescription
layerNamestring
formatHintstring
Return typeDescription
WmtsLayerResourceLink

Returns a layer resource link. If no type hint is specified, the first resource will be returned. A resource link contains a URL as well as an image format and a request encoding (KVP or REST).


getLayers()
        getLayers(): WmtsLayer[]
      
Return typeDescription
WmtsLayer[]

Returns the layers advertised in the endpoint.


getMatrixSetByIdentifier()
        getMatrixSetByIdentifier(identifier: string): WmtsMatrixSet
      
ParameterTypeDescription
identifierstring

Matrix set identifier

Return typeDescription
WmtsMatrixSet

return null if matrix set was not found

Returns a matrix set by identifier


getMatrixSets()
        getMatrixSets(): WmtsMatrixSet[]
      
Return typeDescription
WmtsMatrixSet[]

Returns the matrix sets available for that endpoint. Each matrix set contains a list of tile matrices as well as a supported CRS.


getOpenLayersTileGrid()
        getOpenLayersTileGrid(layerName: string, matrixSetIdentifier: string): Promise<WMTSTileGrid>
      
ParameterTypeDescription
layerNamestring
matrixSetIdentifierstring
Return typeDescription
Promise<WMTSTileGrid>

Creates a WMTSTileGrid instance from the 'ol' package, for a given layer. Optionally, a matrix set can be provided;


getServiceInfo()
        getServiceInfo(): WmtsEndpointInfo
      
Return typeDescription
WmtsEndpointInfo

A Promise which resolves to the endpoint information.


getSingleLayerName()
        getSingleLayerName(): string
      
Return typeDescription
string

If only one single layer is available, return its name; otherwise, returns null;


getTileUrl()
        getTileUrl(layerName: string, styleName: string, matrixSetName: string, tileMatrix: string, tileRow: number, tileCol: number, outputFormat: string): string
      
ParameterTypeDescription
layerNamestring
styleNamestring
matrixSetNamestring
tileMatrixstring
tileRownumber
tileColnumber
outputFormatstring
Return typeDescription
string

Generates a URL for a specific tile of a specific layer


isReady()
        isReady(): Promise<WmtsEndpoint>
      
Return typeDescription
Promise<WmtsEndpoint>

This should be called before any other method to initialize the endpoint!

Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience.




WpsEndpoint

js
import { WpsEndpoint } from '@camptocamp/ogc-client'

Represents a WPS endpoint advertising a set of processes.

Please note that for now, only WPS version 1.0.0 is supported!

Always use the class like so to make sure that all its internals are correctly initialized:

js
const endpoint = await new WpsEndpoint(url).isReady();

📦 Constructor

        new WpsEndpoint(url: string)
      
ParameterTypeDescription
urlstring

WPS endpoint url; can contain any query parameters, these will be used to initialize the endpoint

⚡️ Methods


describeProcess()
        describeProcess(processId: string): Promise<WpsProcessFull>
      
ParameterTypeDescription
processIdstring

Process identifier to describe

Return typeDescription
Promise<WpsProcessFull>

Performs a DescribeProcess request for the given process and returns its full description (inputs, outputs, supported formats).


execute()
        execute(processId: string, options: WpsExecuteOptions): Promise<WpsExecuteResponse>
      
ParameterTypeDescription
processIdstring

Process identifier to execute

optionsWpsExecuteOptions

Execution options (inputs, outputs, response form flags)

Return typeDescription
Promise<WpsExecuteResponse>

Executes a process (POST XML). Fetches the process description first in order to type the inputs.


getCapabilitiesUrl()
        getCapabilitiesUrl(): string
      
Return typeDescription
string

Returns the Capabilities URL used to initialize the endpoint.


getOperationUrl()
        getOperationUrl(operationName: string, method: HttpMethod): string
      
ParameterTypeDescription
operationNamestring

e.g. Execute, DescribeProcess, GetCapabilities

methodHttpMethod

HTTP method

Return typeDescription
string

Returns the URL reported by the WPS for the given operation


getProcesses()
        getProcesses(): WpsProcessSummary[]
      
Return typeDescription
WpsProcessSummary[]

Returns an array of processes advertised by the service, in summary format.


getProcessSummary()
        getProcessSummary(processId: string): WpsProcessSummary
      
ParameterTypeDescription
processIdstring
Return typeDescription
WpsProcessSummary

Returns the summary of a process by its identifier, or null if not found.


getServiceInfo()
        getServiceInfo(): GenericEndpointInfo
      
Return typeDescription
GenericEndpointInfo

Returns the service information.


getStatus()
        getStatus(statusLocation: string): Promise<WpsExecuteResponse>
      
ParameterTypeDescription
statusLocationstring

The statusLocation URL returned by execute()

Return typeDescription
Promise<WpsExecuteResponse>

Polls the status of an asynchronous execution.


getVersion()
        getVersion(): '1.0.0'
      
Return typeDescription
'1.0.0'

Returns the WPS version advertised by this endpoint.


isReady()
        isReady(): Promise<WpsEndpoint>
      
Return typeDescription
Promise<WpsEndpoint>

This should be called before any other method to initialize the endpoint!

Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience.


Functions



check()

js
import { check } from '@camptocamp/ogc-client'
        check(response: XmlDocument, url: string): XmlDocument
      
ParameterTypeDescription
responseXmlDocument

Response to check

urlstring

URL from which response was generated

Return typeDescription
XmlDocument

Check the response for a ServiceExceptionReport and if present throw one




clearCache()

js
import { clearCache } from '@camptocamp/ogc-client'
        clearCache(): Promise<void>
      
Return typeDescription
Promise<void>

Remove all cache entries; will not prevent the creation of new ones




enableFallbackWithoutWorker()

js
import { enableFallbackWithoutWorker } from '@camptocamp/ogc-client'
        enableFallbackWithoutWorker(): void
      
Return typeDescription
void

Call once to disable Worker usage completely




expandDimensionValues()

js
import { expandDimensionValues } from '@camptocamp/ogc-client'
        expandDimensionValues(dim: WmsLayerDimension, max: number): Date[]
      
ParameterTypeDescription
dimWmsLayerDimension
maxnumber
Return typeDescription
Date[]

Expand a dimension's values into Date objects. Each entry is either a single ISO datetime or an interval "start/end/period". Interval entries are enumerated by their period; capped at max entries (default 3650) to avoid runaway expansion on dense series.




getCacheExpiryDuration()

js
import { getCacheExpiryDuration } from '@camptocamp/ogc-client'
        getCacheExpiryDuration(): number
      
Return typeDescription
number

Returns the current cache expiry duration in ms




getDimensionDefaultValue()

js
import { getDimensionDefaultValue } from '@camptocamp/ogc-client'
        getDimensionDefaultValue(dim: WmsLayerDimension): string
      
ParameterTypeDescription
dimWmsLayerDimension
Return typeDescription
string

Resolve the value a dimension should default to: the server's declared default, otherwise the start of the first available value (an interval value is expressed as "start/end/period"). Returns null if none is available.




parseIso8601Duration()

js
import { parseIso8601Duration } from '@camptocamp/ogc-client'
        parseIso8601Duration(duration: string): Iso8601Duration
      
ParameterTypeDescription
durationstring
Return typeDescription
Iso8601Duration

Parse an ISO 8601 duration (e.g. "P1Y", "P1M", "P1D", "PT1H", "PT30M"). Returns null for an unparseable duration. Years and months are kept separate from the fixed-length fields because they are not constant-length and must be applied by calendar arithmetic (see expandDimensionValues).




parseIso8601DurationMs()

js
import { parseIso8601DurationMs } from '@camptocamp/ogc-client'
        parseIso8601DurationMs(duration: string): number
      
ParameterTypeDescription
durationstring
Return typeDescription
number

Parse an ISO 8601 duration into milliseconds. Years and months use civil averages (365.25d / 30.44d) and so are approximate; for exact calendar stepping use parseIso8601Duration + advanceByDuration. Returns 0 when unparseable.




postXmlDocument()

js
import { postXmlDocument } from '@camptocamp/ogc-client'
        postXmlDocument(url: string, body: string): Promise<XmlDocument>
      
ParameterTypeDescription
urlstring
bodystring
Return typeDescription
Promise<XmlDocument>

Runs a POST HTTP request with an XML body to the provided URL and resolves to the XmlDocument. Unlike queryXmlDocument, this is not guarded against concurrent identical requests (POST is not idempotent) and does not go through sharedFetch.




resetFetchOptions()

js
import { resetFetchOptions } from '@camptocamp/ogc-client'
        resetFetchOptions(): void
      
Return typeDescription
void

Resets advanced fetch() options to their defaults




setCacheExpiryDuration()

js
import { setCacheExpiryDuration } from '@camptocamp/ogc-client'
        setCacheExpiryDuration(value: number): void
      
ParameterTypeDescription
valuenumber

Duration in ms

Return typeDescription
void

Sets a new cache expiry duration, in ms. Setting this to a value <= 0 will disable the caching logic altogether and not store cache entries at all




setFetchOptions()

js
import { setFetchOptions } from '@camptocamp/ogc-client'
        setFetchOptions(options: FetchOptions): void
      
ParameterTypeDescription
optionsFetchOptions
Return typeDescription
void

Set advanced options to be used by all fetch() calls




sharedFetch()

js
import { sharedFetch } from '@camptocamp/ogc-client'
        sharedFetch(url: string, method: 'GET' | 'HEAD', asJson: boolean, customAcceptHeader: string): Promise<any>
      
ParameterTypeDescription
urlstring
method'GET' | 'HEAD'
asJsonboolean
customAcceptHeaderstring
Return typeDescription
Promise<any>

Returns a promise equivalent to fetch(url) but guarded against identical concurrent requests Note: this should only be used for GET requests!




useCache()

js
import { useCache } from '@camptocamp/ogc-client'
        useCache(factory: () => T | Promise<T>, ...keys: string[]): Promise<T>
      
ParameterTypeDescription
factory() => T | Promise<T>

A function encapsulating the long/expensive task; non-serializable properties of the returned object will be set to null

keysstring[]

Keys will be concatenated for storage

Return typeDescription
Promise<T>

Resolves to either a cached object or a fresh one

This will skip a long/expensive task and use a cached value if available, otherwise the task will be run normally Note: outside of a browser's main thread, caching will never happen!


Types



Address

PropertyTypeDescription
administrativeAreastring
citystring
countrystring
deliveryPointstring
postalCodestring



Attribution

PropertyTypeDescription
logo
titlestring



CollectionParameter

PropertyTypeDescription
namestring
titlestring
type'string' | 'number' | 'integer' | 'date' | 'linestring' | 'polygon' | 'point' | 'geometry'



CommonMetadata

PropertyTypeDescription
constellationstring

Name of the constellation to which the platform belongs

createdstring

Creation date and time in UTC (ISO 8601)

descriptionstring

Detailed description using CommonMark syntax

gsdnumber

Ground Sample Distance in meters

instrumentsstring[]

List of instrument names

keywordsstring[]

List of keywords describing the entity

licensestring

SPDX License identifier, SPDX expression, or 'other'

missionstring

Name of the mission or campaign

platformstring

Unique name of the platform (satellite, aircraft, etc.)

providersStacProvider[]

Organizations or individuals who captured, processed, or hosted the data

titlestring

Human-readable title

updatedstring

Last update date and time in UTC (ISO 8601)




Contact

PropertyTypeDescription
addressAddress
emailstring
faxstring
namestring
organizationstring
phonestring
positionstring



ContactInformation

PropertyTypeDescription
contactAddress
contactElectronicMailAddressstring
contactFacsimileTelephonestring
contactPersonPrimary
contactPositionstring
contactVoiceTelephonestring



FetchOptions

PropertyTypeDescription
credentials'same-origin' | 'include' | 'omit'
headersRecord<string, string>
integritystring
mode'same-origin' | 'cors' | 'no-cors'
redirect'error' | 'follow'
referrerstring



GetCollectionItemsOptions

PropertyTypeDescription
bboxBoundingBox

Bounding box to filter items [minx, miny, maxx, maxy]

datetimeDateTimeParameter

Date/time filter

limitnumber

Maximum number of items to return

querystring

Additional query string to append to the URL




LayerStyle

PropertyTypeDescription
abstractstring
legendUrlstring

May not be defined; a GetLegendGraphic operation should work in any case

namestring
titlestring



Metadata

PropertyTypeDescription
hrefstring
mimeTypestring
typestring



NcwmsLayerDetails

PropertyTypeDescription
bboxBoundingBox
defaultPalettestring
palettesstring[]
scaleRange[number, number]
supportedStylesstring[]
unitsstring



NcwmsMinMax

PropertyTypeDescription
maxnumber
minnumber



OgcApiCollectionInfo

PropertyTypeDescription
bulkDownloadLinksRecord<string, MimeType>

Map between formats and bulk download links (no filtering, pagination etc.)

crsstring[]
data_queries
descriptionstring
extentBoundingBox
idstring
itemCountnumber
itemFormatsstring[]

These mime types are available through the /items endpoint; use the getCollectionItemsUrl function to generate a URL using one of those formats

itemType'feature' | 'record'
jsonDownloadLinkstring

Link to the first bulk download link using JSON-FG or GeoJSON; null if no link found

keywordsstring[]
languagestring

Language is Iso 2-letter code (e.g. 'en')

licensestring
linksany
mapTileFormatsstring[]
parameter_namesRecord<string, EdrParameterInfo>
publisher
queryablesCollectionParameter[]
sortablesCollectionParameter[]
storageCrsstring
supportedTileMatrixSetsstring[]
titlestring
updatedDate
vectorTileFormatsstring[]



PropertyTypeDescription
hrefstring
relstring
titlestring
typestring



OgcApiEndpointInfo

PropertyTypeDescription
attributionstring
descriptionstring
titlestring



OgcApiRecordContact

PropertyTypeDescription
contactInstructionsstring
linksOgcApiDocumentLink[]
namestring
rolesstring[]



OgcApiRecordLanguage

PropertyTypeDescription
alternatestring
codestring
dir'ltr' | 'rtl' | 'ttb' | 'btt'
namestring



OgcApiRecordProperties

PropertyTypeDescription
contactsOgcApiRecordContact[]
createdDate
descriptionstring
externalIdsOgcApiItemExternalId[]
formatsstring[]
keywordsstring[]
languageOgcApiRecordLanguage
languagesOgcApiRecordLanguage[]
licensestring
providersstring[]
resourceLanguagesOgcApiRecordLanguage[]
rightsstring
themesOgcApiRecordTheme[]
titlestring
typestring
updatedDate



Origin

PropertyTypeDescription
xnumber
ynumber



Provider

PropertyTypeDescription
contactContact
namestring
sitestring



StacAsset

PropertyTypeDescription
bandsStacBand[]

Information about bands in the asset

constellationstring

Name of the constellation to which the platform belongs

createdstring

Creation date and time in UTC (ISO 8601)

data_typestring

Data type of the values (e.g., uint8, float32)

descriptionstring

Description of the asset

gsdnumber

Ground Sample Distance in meters

hrefstring

URI to the asset object (required)

instrumentsstring[]

List of instrument names

keywordsstring[]

List of keywords describing the entity

licensestring

SPDX License identifier, SPDX expression, or 'other'

missionstring

Name of the mission or campaign

nodatastring | number

Value representing no data or invalid data

platformstring

Unique name of the platform (satellite, aircraft, etc.)

providersStacProvider[]

Organizations or individuals who captured, processed, or hosted the data

rolesstring[]

Semantic roles of the asset

statisticsStacStatistics

Statistics about data values

titlestring

Human-readable title

typestring

Media type of the asset

unitstring

Unit of measurement (UCUM or UDUNITS-2)

updatedstring

Last update date and time in UTC (ISO 8601)




StacBand

PropertyTypeDescription
center_wavelengthnumber

Center wavelength of the band in micrometers

descriptionstring

Description of the band using CommonMark syntax

full_width_half_maxnumber

Full width at half maximum of the band in micrometers

namestring

Name of the band




StacCatalog

PropertyTypeDescription
descriptionstring

Detailed description

idstring

Identifier for the catalog

linksStacLink[]

Links to related resources

stac_extensionsstring[]

List of extension identifiers

stac_version'1.0.0'

STAC version

titlestring

Human-readable title

type'Catalog'

Type must be "Catalog"




StacCollection

PropertyTypeDescription
assetsRecord<string, StacAsset>

Dictionary of asset objects (at collection level)

descriptionstring

Detailed description

extentStacExtent

Spatial and temporal extents

idstring

Identifier for the collection

keywordsstring[]

List of keywords

licensestring

Collection license (SPDX identifier or 'other')

linksStacLink[]

Links to related resources

propertiesPartial

Common metadata inherited by all items

providersStacProvider[]

Organizations or individuals who provided the data

stac_extensionsstring[]

List of extension identifiers

stac_version'1.0.0'

STAC version

summariesRecord<string, unknown>

Summaries of properties across all items in the collection

titlestring

Human-readable title

type'Collection'

Type must be "Collection"




StacEndpointInfo

PropertyTypeDescription
conformsTostring[]
descriptionstring
idstring
stacVersionstring
titlestring



StacExtent

PropertyTypeDescription
spatialStacSpatialExtent

Spatial extent

temporalStacTemporalExtent

Temporal extent




StacItem

PropertyTypeDescription
assetsRecord<string, StacAsset>

Dictionary of asset objects (optional - some APIs may omit)

bboxStacBBox

Bounding box (required if geometry is not null)

collectionstring

Collection ID (required if a "collection" link exists)

geometryGeometry

GeoJSON Geometry object or null

idstring

Provider identifier (unique within the collection)

linksStacLink[]

Links to related resources

propertiesStacItemProperties

Properties object containing metadata

stac_extensionsstring[]

List of extension identifiers

stac_version'1.0.0'

STAC version (optional - may be inherited from collection/API level)

type'Feature'

Type must be "Feature" (from GeoJSON)




StacItemProperties

PropertyTypeDescription
constellationstring

Name of the constellation to which the platform belongs

createdstring

Creation date and time in UTC (ISO 8601)

datetimestring

Date and time in UTC (ISO 8601) Either datetime OR both start_datetime and end_datetime are required

descriptionstring

Detailed description using CommonMark syntax

end_datetimestring

End date and time for a time range in UTC (ISO 8601)

gsdnumber

Ground Sample Distance in meters

instrumentsstring[]

List of instrument names

keywordsstring[]

List of keywords describing the entity

licensestring

SPDX License identifier, SPDX expression, or 'other'

missionstring

Name of the mission or campaign

platformstring

Unique name of the platform (satellite, aircraft, etc.)

providersStacProvider[]

Organizations or individuals who captured, processed, or hosted the data

start_datetimestring

Start date and time for a time range in UTC (ISO 8601)

titlestring

Human-readable title

updatedstring

Last update date and time in UTC (ISO 8601)




StacItemsDocument

PropertyTypeDescription
featuresStacItem[]
linksundefined[]
numberMatchednumber
numberReturnednumber
type'FeatureCollection'



PropertyTypeDescription
bodyunknown

Request body for POST requests

headersRecord<string, string | string[]>

Additional headers to include in the request

hrefstring

URI or URL to the linked resource

methodstring

HTTP method for the request (default: GET)

relstring

Relationship type

titlestring

Human-readable title for the link

typestring

Media type of the linked resource




StacProvider

PropertyTypeDescription
descriptionstring

Description of what the provider does

namestring

Name of the organization or individual

roles'producer' | 'licensor' | 'processor' | 'host'[]

Roles of the provider (producer, licensor, processor, host)

urlstring

Homepage URL




StacSpatialExtent

PropertyTypeDescription
bboxStacBBox[]

Array of bounding boxes (at least one required)




StacStatistics

PropertyTypeDescription
countnumber

Number of values used for statistics

maximumnumber

Maximum value

meannumber

Mean value

minimumnumber

Minimum value

stddevnumber

Standard deviation




StacTemporalExtent

PropertyTypeDescription
interval[string, string][]

Array of time intervals, each with start and end times (ISO 8601) null indicates open-ended interval




TileFormat

PropertyTypeDescription
extensionstring
heightnumber
mimeTypestring
widthnumber



TileMapInfo

PropertyTypeDescription
abstractstring
attributionAttribution
boundingBoxBoundingBox
facenumber
keywordsstring[]
metadataMetadata[]
originOrigin
profileTmsProfile
srsstring
tileFormatTileFormat
tileMapServicestring
tileSetsTileSet[]
titlestring
versionstring
webMapContextstring



TileMapReference

PropertyTypeDescription
hrefstring
profileTmsProfile
srsstring
titlestring



TileMapService

PropertyTypeDescription
abstractstring
contactInformationContactInformation
keywordsstring[]
servicesstring
tileMapsTileMapReference[]
titlestring
versionstring



TileMatrixSet

PropertyTypeDescription
idstring
uristring



TileSet

PropertyTypeDescription
hrefstring
maxcolnumber
maxrownumber
mincolnumber
minrownumber
ordernumber
unitsPerPixelnumber



TmsEndpointInfo

PropertyTypeDescription
abstractstring
contactContactInformation
keywordsstring[]
titlestring



WmtsEndpointInfo

PropertyTypeDescription
abstractstring
constraintsstring
exceptionFormatsstring[]

Contains a list of formats that can be used for Exceptions for WMS GetMap, or undefined for other services such as WFS

feesstring
getTileUrls
infoFormatsstring[]

Contains a list of formats that can be used for WMS GetFeatureInfo, or undefined for other services such as WFS

keywordsstring[]
namestring
outputFormatsstring[]

Can contain the list of outputFormats from a WFS GetCapabilities, or the list of 'Formats' from a WMS GetCapabilities

providerProvider
titlestring



WmtsLayer

PropertyTypeDescription
defaultStylestring
dimensionsLayerDimension[]
latLonBoundingBoxBoundingBox
matrixSetsMatrixSetLink[]
namestring
resourceLinksWmtsLayerResourceLink[]
stylesLayerStyle[]



PropertyTypeDescription
encodingWmtsRequestEncoding
formatstring
urlstring



WmtsMatrixSet

PropertyTypeDescription
boundingBoxBoundingBox
crsstring
identifierstring
tileMatricesTileMatrix[]
wellKnownScaleSetstring



WpsBoundingBoxData

PropertyTypeDescription
defaultCrsstring
supportedCrsstring[]



WpsComplexData

PropertyTypeDescription
defaultWpsFormat
maximumMegabytesnumber
supportedWpsFormat[]



WpsExecuteOptions

PropertyTypeDescription
inputsWpsInputValue[]
lineageboolean
outputsWpsOutputSelection[]
statusboolean
storeExecuteResponseboolean



WpsExecuteOutputResult

PropertyTypeDescription
data
identifierstring
reference
titlestring



WpsExecuteResponse

PropertyTypeDescription
outputsWpsExecuteOutputResult[]
percentCompletednumber
statusWpsExecuteStatus
statusLocationstring



WpsFormat

PropertyTypeDescription
encodingstring
mimeTypestring
schemastring



WpsInputValue

PropertyTypeDescription
boundingBoxValue
complexValue

Complex content, e.g. GML/GeoJSON/WKT. The content is inserted raw when the mimeType denotes XML (GML), otherwise it is wrapped in CDATA.

identifierstring
literalValuestring



WpsLiteralData

PropertyTypeDescription
allowedValuesstring[]
anyValueboolean
dataTypestring
defaultValuestring



WpsOutputSelection

PropertyTypeDescription
asReferenceboolean
identifierstring
mimeTypestring



WpsProcessFull

PropertyTypeDescription
abstractstring
identifierstring
inputsWpsProcessInput[]
outputsWpsProcessOutput[]
processVersionstring
statusSupportedboolean
storeSupportedboolean
titlestring



WpsProcessInput

PropertyTypeDescription
abstractstring
boundingBoxDataWpsBoundingBoxData
complexDataWpsComplexData
identifierstring
literalDataWpsLiteralData
maxOccursnumber
minOccursnumber
titlestring
typeWpsInputType



WpsProcessOutput

PropertyTypeDescription
abstractstring
complexDataWpsComplexData
identifierstring
literalData
titlestring
typeWpsInputType



WpsProcessSummary

PropertyTypeDescription
abstractstring
identifierstring
processVersionstring
titlestring



BoundingBox

        [number, number, number, number]
      



CollectionParameterType

        [object Object][number]
      



ConformanceClass

        string
      



CrsCode

        string
      



DataQueryType

        [object Object][number]
      



EdrParameterInfo

PropertyTypeDescription
idstring
namestring
observedProperty
typestring
unit



FeatureGeometryType

        'linestring' | 'polygon' | 'point' | 'multilinestring' | 'multipolygon' | 'multipoint' | 'unknown'
      



FeaturePropertyType

        'string' | 'float' | 'integer' | 'boolean' | 'date'
      



FeaturePropertyValue

        string | number | boolean | Date
      



GenericEndpointInfo

PropertyTypeDescription
abstractstring
constraintsstring
exceptionFormatsMimeType[] | string[]

Contains a list of formats that can be used for Exceptions for WMS GetMap, or undefined for other services such as WFS

feesstring
infoFormatsMimeType[]

Contains a list of formats that can be used for WMS GetFeatureInfo, or undefined for other services such as WFS

keywordsstring[]
namestring
outputFormatsMimeType[]

Can contain the list of outputFormats from a WFS GetCapabilities, or the list of 'Formats' from a WMS GetCapabilities

providerProvider
titlestring



MetadataURL

PropertyTypeDescription
formatstring
typestring
urlstring



MimeType

        string
      



OgcApiCollectionItem




OgcApiDocument

         & Record<string, unknown>
      



OgcApiRecord

PropertyTypeDescription
conformsTostring[]
geometryGeometry
idstring
linksOgcApiDocumentLink[]
propertiesOgcApiRecordProperties
timeOgcApiTime
typestring



OgcApiStyleMetadata

PropertyTypeDescription
createdstring
descriptionstring
idstring
keywordsstring[]
layersundefined[]
licensestring
linksOgcApiDocumentLink[]
pointOfContactstring
scope'style'
stylesheetsOgcApiStylesheet[]
titlestring
updatedstring
versionstring



OgcApiStyleRecord

PropertyTypeDescription
idstring
titlestring



OgcApiStylesDocument

PropertyTypeDescription
linksOgcApiDocumentLink[]
stylesStyleItem[]



OgcApiStylesheet

PropertyTypeDescription
linkOgcApiDocumentLink
nativeboolean
specificationstring
titlestring
versionstring



OgcStyleBrief

PropertyTypeDescription
formatsstring[]
idstring
titlestring






StacBBox

        [number, number, number, number] | [number, number, number, number, number, number]
      



StacVersion

        '1.0.0'
      



StyleItem

PropertyTypeDescription
formatsstring[]
idstring
linksOgcApiDocumentLink[]
titlestring



TmsProfile

        'none' | 'global-geodetic' | 'global-mercator' | 'local'
      



WfsFeatureTypeBrief

PropertyTypeDescription
abstractstring
boundingBoxBoundingBox

Expressed in latitudes and longitudes

namestring
titlestring



WfsFeatureTypeFull

PropertyTypeDescription
abstractstring
boundingBoxBoundingBox

Expressed in latitudes and longitudes

defaultCrsCrsCode
geometryNamestring

Not defined if no geometry present

geometryTypeFeatureGeometryType

Not defined if no geometry present

keywordsstring[]
namestring
objectCountnumber

Not defined if object count could not be determined

otherCrsCrsCode[]
outputFormatsMimeType[]
propertiesRecord<string, FeaturePropertyType>

These properties will not include the feature geometry

titlestring



WfsFeatureTypePropDetails

        void
      



WfsFeatureTypePropsDetails

        Record<string, WfsFeatureTypePropDetails>
      



WfsFeatureTypeSummary

PropertyTypeDescription
abstractstring
boundingBoxBoundingBox

Expressed in latitudes and longitudes

defaultCrsCrsCode
keywordsstring[]
metadataMetadataURL[]
namestring
otherCrsCrsCode[]
outputFormatsMimeType[]
titlestring



WfsFeatureTypeUniqueValue

PropertyTypeDescription
countnumber
valuenumber | boolean | string



WfsFeatureWithProps

PropertyTypeDescription
idstring

Feature id

propertiesRecord<string, FeaturePropertyValue>

Feature properties




WfsGetFeatureOptions

PropertyTypeDescription
asJsonboolean

if true, will ask for GeoJSON; will throw if the service does not support it

attributesstring[]

if not defined, all attributes will be included; note that the fact that these attributes exist or not will not be checked!

extentBoundingBox

an extent to restrict returned objects

extentCrsCrsCode

if unspecified, extent should be in the data native projection

hitsOnlyboolean

if true, will not return feature data, only hit count note: this might not work for WFS version < 2

maxFeaturesnumber

No limit if undefined

outputCrsCrsCode

if unspecified, this will be the data native projection

outputFormatMimeType

a supported output format (overridden by asJson)

sortByFieldSort | FieldSort[]

attributes to sort by on, by either ascending or descending order

startIndexnumber

if the service supports it, this will be the index of the first feature to return




WfsVersion

        '1.0.0' | '1.1.0' | '2.0.0'
      



WmsLayerAttribution

PropertyTypeDescription
logoUrlstring
titlestring
urlstring



WmsLayerDescription

PropertyTypeDescription
layerNamestring
owsType'wcs' | 'wfs'
owsUrlstring
typeNamestring



WmsLayerDimension

PropertyTypeDescription
currentboolean
defaultValuestring
multipleValuesboolean
namestring
nearestValueboolean
unitsstring
unitSymbolstring
valuesstring[]



WmsLayerFull

PropertyTypeDescription
abstractstring
attributionWmsLayerAttribution
availableCrsCrsCode[]
boundingBoxesRecord<CrsCode, BoundingBox>

Dict of bounding boxes where keys are CRS codes

childrenWmsLayerFull[]

Not defined if the layer is a leaf in the tree

dimensionsWmsLayerDimension[]
keywordsstring[]
maxScaleDenominatornumber
metadataMetadataURL[]
minScaleDenominatornumber
namestring

The layer is renderable if defined

opaqueboolean
queryableboolean
stylesLayerStyle[]
titlestring



WmsLayerSummary

PropertyTypeDescription
abstractstring
childrenWmsLayerSummary[]

Not defined if the layer is a leaf in the tree

namestring

The layer is renderable if defined

titlestring



WmsVersion

        '1.1.0' | '1.1.1' | '1.3.0'
      



WmtsLayerDimensionValue

        string
      



WpsEndpointInfo




WpsExecuteStatus

        'accepted' | 'started' | 'paused' | 'succeeded' | 'failed'
      



WpsInputType

        'literal' | 'boundingbox' | 'complex'
      



WpsVersion

        '1.0.0'