- URL:https://<rastercatalogitem-url>/info/histograms
- Required Capability:Image, Catalog
- Version Introduced:10.1
Description
Licencia:
As of 10.5, you must license your ArcGIS Server as an ArcGIS Image Server in order to use this resource.
The raster histograms resource returns histograms of the associated raster in an image service.
Request parameters
Parameter | Details |
---|---|
f | The response format. The default response format is html. Values: html | json |
Example usage
The following is a sample request URL used to access the histograms resource:
https://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto/ImageServer/1/info/histograms
JSON Response syntax
Refer to Histogram object for the syntax of a histogram.
{
"histograms": [
<histogram1>,
<histogram2>,
<histogram3>,
...
]
}
JSON Response example
{
"histograms": [
{
"size": 256,
"min": -0.5,
"max": 255.5,
"counts": [
42915,
23218,
24832,
25925
36054,
57097,
61278,
65211
...
]
},
{
"size": 256,
"min": -0.5,
"max": 255.5,
"counts": [
42915,
23218,
24832,
25925
36054,
57097,
61278,
65211
...
]
},
{
"size": 256,
"min": -0.5,
"max": 255.5,
"counts": [
42915,
23218,
24832,
25925
36054,
57097,
61278,
65211
...
]
}
]
}