Slices

URL:
https://<imageservice-url>/slices
Methods:
GET
Required Capability:
Image
Version Introduced:
10.8.1

Description

The slices resource applies to image services of multidimensional datasets only. It returns the sliceId and multidimensional information for requested dimensional slices of the source dataset.

This image service resource is available if the image service uses ArcObjects11 or ArcObjectsRasterRendering as the service provider.

You can provide arguments to the slices operation as parameters defined in the parameters table below.

Request parameters

ParameterDetails

multidimensionalDefinition

An array of dimensional definition objects that is used to query dimensional slices of the source dataset. For more information about the definition and syntax of the multidimensional definition object, refer to Multidimensional Definition.

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

Below is a sample request URL that demonstrates how to return information about dimensional slices of the salinity variable at the StdZ dimension with a value of -5000:

1
https://machine.domain.com/webadaptor/rest/services/mynetcdf/ImageServer/slices?multidimensionalDefinition=[{"variableName":"salinity","dimensionName":"StdZ","values": [-5000]}]&f=html

JSON Response syntax

1
2
3
4
5
6
7
8
{
  "slices": [
    <slice1>,
    <slice2>,
    <slice3>,
    ...
  ]
}

JSON Response example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  "slices": [
    {
      "sliceId": 0,
      "multidimensionalDefinition": [
        {
          "variableName": "salinity",
          "dimensionName": "StdZ",
          "values": [-5000]
        },
        {
          "variableName": "salinity",
          "dimensionName": "StdTime",
          "values": [1363478400000]
        }
      ]
    },
    {
      "sliceId": 1,
      "multidimensionalDefinition": [
        {
          "variableName": "salinity",
          "dimensionName": "StdZ",
          "values": [-5000]
        },
        {
          "variableName": "salinity",
          "dimensionName": "StdTime",
          "values": [1363489200000]
        }
      ]
    },
    {
      "sliceId": 2,
      "multidimensionalDefinition": [
        {
          "variableName": "salinity",
          "dimensionName": "StdZ",
          "values": [-5000]
        },
        {
          "variableName": "salinity",
          "dimensionName": "StdTime",
          "values": [1363500000000]
        }
      ]
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close