Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: WCSConnection

require(["esri/layers/WCSConnection"], function(WCSConnection) { /* code goes here */ });

Description

(Added at v3.18)
(Currently in beta), a helper class to discover available coverages in an OGC Web Coverage Service.

Samples

Search for samples that use this class.

Constructors

NameSummary
new WCSConnection(url, options?)Creates a new WCSConnection.

Constants

NameDescription
INTERPOLATION_BILINEARResamples pixel by bilinear interpolation. Value = 1.
INTERPOLATION_CUBICCONVOLUTIONResamples pixel by cubic convolution. Value = 2.
INTERPOLATION_NEARESTNEIGHBORResamples pixel by nearest neighbor. Value = 0.

Properties

NameTypeSummary
coveragesWCSCoverageDescription[]An array of coverages offered by the WCS server.
multidimensionalDefinitionDimensionalDefinition[]Multiple dimensional definitions are usually used to filter data.
nameStringThe name of the WCS server.
onlineResourcesObjectKey-value pairs for URLs of different WCS operations:
  • GetCapabilities
  • DescribeCoverage
.
profilesString[]An array of string values indicating WCS 2.0.1 profiles.
supportedFormatsString[]An array of supported formats by the server.
supportedInterpolationsNumber[]The interpolation method affects how the raster dataset is transformed when it undergoes warping or when it changes coordinate space.
supportedVersionsString[]An array of supported WCS versions by the server.
urlStringURL to a WCS Server endpoint.
versionStringThe version of WCSLayer, can be:
  • 1.0.0
  • 1.1.0
  • 1.1.1
  • 1.1.2
  • 2.0.1
.

Events

[ On Style Events | Connect Style Event ]
All On Style event listeners receive a single event object. Additionally, the event object also contains a 'target' property whose value is the object which fired the event.

Events

NameEvent ObjectSummary
onConnectedTriggered when successfully retrieved list of coverages.
onConnectionFailed
{
  error: <Error>
}
Triggered when an error occurred.
Constructor Details

new WCSConnection(url, options?)

Creates a new WCSConnection.
Parameters:
<String> url Required URL to a WCS Server endpoint.
<Object> options Optional Optional parameters. See options list below.
options properties:
<String> coverageId Optional The coverage identifier, defaults to the first coverage.
<String> version Optional The version of WCSLayer, can be:
  • 1.0.0
  • 1.1.0
  • 1.1.1
  • 1.1.2
  • 2.0.1
Sample:
var wcsLayer = new WCSConnection { url: "https://sampleserver6.arcgisonline.com/arcgis/services/ScientificData/SeaTemperature/ImageServer/WCSServer"
};
Property Details
An array of coverages offered by the WCS server.

<DimensionalDefinition[]> multidimensionalDefinition

Multiple dimensional definitions are usually used to filter data.
Sample:
var wcsConn = new WCSConnection();
wcsConn.multidimensionalDefinition = [];
  wcsConn.multidimensionalDefinition.push(new DimensionalDefinition({
  variableName: "Salinity",
  dimensionName: "StdTime",
  values: [1259625600000]
}));

<String> name

The name of the WCS server.

<Object> onlineResources

Key-value pairs for URLs of different WCS operations:
  • GetCapabilities
  • DescribeCoverage

<String[]> profiles

An array of string values indicating WCS 2.0.1 profiles.

<String[]> supportedFormats

An array of supported formats by the server. Only available for WCS versions 1.1.x and 2.0.1.

<Number[]> supportedInterpolations

The interpolation method affects how the raster dataset is transformed when it undergoes warping or when it changes coordinate space. See the constants table for a list of possible interpolation values.

<String[]> supportedVersions

An array of supported WCS versions by the server.

<String> url

URL to a WCS Server endpoint. NOTE: It is also possible to pass optional parameters in the URL, for example:
var wcsLayer = new WCSLayer {url: "https://sampleserver6.arcgisonline.com/arcgis/services/ScientificData/SeaTemperature/ImageServer/WCSServer?foo=bar"};

<String> version

The version of WCSLayer, can be:
  • 1.0.0
  • 1.1.0
  • 1.1.1
  • 1.1.2
  • 2.0.1
Event Details
[ On Style Events | Connect Style Event ]

onConnected

Triggered when successfully retrieved list of coverages.

onConnectionFailed

Triggered when an error occurred.
Event Object Properties:
<Error> error The returned error object.
Show Modal