Raster Info

URL:
https://<rastercatalogitem-url>/info
Methods:
GET
Required Capability:
Catalog
Version Introduced:
10.0

Description

The info resource returns information about the associated raster such as its width, height, number of bands, and pixel type.

The raster info resource supports ICS To Pixel. child resource. It returns geometric transformation coefficients that can be used to perform image coordinate system [sensor: Frame] to pixel (column, row) transformation.

The raster info resource supports the following child resources:

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

Example usage

The following is a sample request URL that demonstrates returning raster info for raster ID 8:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/Portland/CascadeLandsat/ImageServer/8/info?f=json

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "origin": <origin>,
  "blockWidth": <blockWidth>,
  "blockHeight": <blockHeight>,
  "pixelSizeX": <pixelSizeX>,
  "pixelSizeY": <pixelSizeY>,
  "extent": <extent>,
  "bandCount": <bandCount>,
  "pixelType": "< C128 | C64 | F32 | F64 | S16 | S32 | S8 | U1 | U16 | U2 | U32 | U4 | U8 | UNKNOWN >",
  "firstPyramidLevel": <firstPyramidLevel>,
  "maxPyramidLevel": <maxPyramidLevel>,
  "statistics" : //new at 10.3, optional - depends on whether statistics is available on the dataset.
     [
      [<min1>, <max1>, <mean1>, <standardDeviation1>], //[double, double, double, double]
      [<min2>, <max2>, <mean2>, <standardDeviation2>],
	  ....
    ],
  "histograms": //new at 10.3, optional - depends on whether histograms are available on the dataset.
     [
    <histogram1>, <histogram2>,<histogram3>,...
    ]
}

JSON Response example

Use dark colors for code blocksCopy
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
  "origin" : {"x" : -118.15, "y" : 33.80},
  "blockWidth": 2726,
  "blockHeight": 1,
  "pixelSizeX": 30.386,
  "pixelSizeY": 30.386,
  "extent" : {"xmin" : -119.56, "ymin" : 33.54, "xmax" : -117.37, "ymax" : 36.71},
  "bandCount": 3,
  "pixelType": "U8",
  "firstPyramidLevel": 1,
  "maxPyramidLevel": 9,
  "statistics":[
  [25.2,228.6,102.5,15.8],
  [22.8,235.9,111.2,16.5],
  [32.5,238.8,115.3,17.9]
  ],
  "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
        ...
        ]
   }
 ]
}

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