Skip To Content

Slices

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:

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

JSON Response syntax


{
  "slices": [
    <slice1>,
    <slice2>,
    <slice3>,
    ...
  ]
}

JSON Response example


{
  "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]
        }
      ]
    }
  ]
}