Estimate Export Tile Size

URL:
https://Image Service/estimateExportTilesSize
Methods:
GET
Version Introduced:
10.2.1

Description

The estimateExportTilesSize (submitJob) operation is an asynchronous task that allows estimation of the size of the tile package or the cache data set that you download using the Export Tiles operation. This operation can also be used to estimate the tile count in a tile package and determine if it will exceced the maxExportTileCount limit set by the administrator of the service. The result of this operation is Image Service Job. This job response contains reference to Image Service Result resource that returns the total size of the cache to be exported (in bytes) and the number of tiles that will be exported.

At 10.2.2, estimateExportTilesSize is supported as an operation of the Image Server. The use of estimateExportTilesSize/submitJob operation is deprectated.

Request parameters

ParameterDetails

f

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

Values: html | json

tilePackage

Description: Allows estimating the size for either a tile package or a cache raster data set. Specify the value true for tile packages format and false for Cache Raster data set. The default value is false

Values: true | false

exportExtent

Description: The extent (bounding box) of the tile package or the cache dataset to be exported. If extent does not include a spatial reference, the extent values are assumed to be in the spatial reference of the data. The default value is full extent of the tiled Image service.

Syntax: <xmin>, <ymin>, <xmax>, <ymax>

Example 1: -104,35.6,-94.32,41

Example 2: {"xmin" : -109.55, "ymin" : 25.76, "xmax" : -86.39, "ymax" : 49.94,"spatialReference" : {"wkid" : 4326}}

exportBy

Description: The criteria that will be used to select the tile service levels to export. The values can be Level IDs, cache scales or the Resolution (in the case of image services).

Values: LevelID | Resolution | Scale

levels

Description: Specify the tiled service levels for which you want to get the estimates. The values should correspond to Level IDs, cache scales or the Resolution as specified in exportBy parameter. The values can be comma separated values or a range.

Example 1: 1,2,3,4,5,6,7,8,9

Example 2: 1-4,7-9

areaOfInterest

Description: (Optional) The areaOfInterest polygon allows exporting tiles within the specified polygon areas. This parameter supersedes exportExtent parameter.

Example: { "features": [{"geometry":{"rings":[[[-100,35],[-100,45],[-90,45],[-90,35],[-100,35]]],"spatialReference":{"wkid":4326}}}]}

Example usage

Example 1:

https://myserver.mydomain.com/arcgis/rest/services/WorldImagery/ImageServer/estimateExportTilesSize?tilePackage=true&exportExtent=&exportBy=levelId&levels=0-7&areaOfInterest=&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
{"jobId" : "<jobId>","jobStatus" : "<jobStatus>"}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
{
 "jobId": "jeeb938cbb2774269a7ca9910df4ee700",
 "jobStatus": "esriJobSubmitted"
}

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