Query Boundary

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

Description

The Query Boundary operation is performed on an image service resource.

The Query Boundary operation is supported by image services based on mosaic datasets or raster datasets.

For an image service based on a mosaic dataset, the result of this operation includes the geometry shape of the mosaicked items' boundary and area of coverage in square meters.

For an image service based on a raster dataset, the result of this operation includes the geometry shape of the dataset's envelope boundary and area of coverage in square meters.

Request parameters

ParameterDetails

f

Description: The response format. The default response format is HTML.

Values: html | json

outSR

Description: The spatial reference of the boundary's geometry.

The spatial reference can be specified as either a well-known ID or as a spatial reference JSON object.

If the outSR is not specified, the boundary will be reported in the spatial reference of the image service.

Example usage

Query boundary of an image service.

https://myserver/arcgis/rest/services/myimageservice/ImageServer/queryBoundary?outSR=4326&f=json

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
{
  "shape" : <polygon/envelope>,
  "area" : <value>
}

Refer to the Geometry Object for the syntax of a polygon or envelope shape.

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
{
 "shape": {
  "rings": [
   [
    [
     -119.974672241592586,
     45.2206154474027642
    ],
    [
     -120.033534257808142,
     45.0662933470099034
    ],
    [
     -120.034237980308632,
     45.066402936011599
    ],
    [
     -120.566985010952365,
     43.6451537283816862
    ],
    [
     -122.8105746953721,
     43.9706144540871691
    ],
    [
     -122.304611805056538,
     45.4800351537390739
    ],
    [
     -121.769874462131938,
     47.00459040109687
    ],
    [
     -119.408468500569185,
     46.65857333113042
    ],
    [
     -119.967626469550851,
     45.2390256105394215
    ],
    [
     -119.967542321363723,
     45.2390123482548105
    ],
    [
     -119.974672241592586,
     45.2206154474027642
    ]
   ]
  ],
  "spatialReference": {
   "wkid": 4326,
   "latestWkid": 4326
  }
 },
 "area": 63827885551.805801
}

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