- 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 slice
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
Parameter | Details |
---|---|
| 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. |
|
The response format. The default response format is Values: |
Example usage
Below is a sample request URL that demonstrates how to return information about dimensional slices of the salinity
variable at the Std
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]
}
]
}
]
}