Query Boundary

  • URL:
    http://<imageservice-url>/queryBoundary
  • Required Capability:Image
  • Version Introduced:10.6

Description

This operation is supported at 10.6 and later.

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 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 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.

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

JSON Response Syntax

{
  "shape" : <polygon/envelope>,
  "area" : <value>
}

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

JSON Response Example

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