The Extract Data task is used to extract data from one or more layers within a given extent. The extracted data format can be CSV, KML, a file geodatabase, or a shapefile. File geodatabases and shapefiles are added to a .zip
file that can be downloaded.
Request URL
http://<analysis url>/ExtractData/submitJob
Request parameters
Parameter | Description |
---|---|
| A list of input layers to be extracted. Syntax: As described in detail in the Feature Input topic, this parameter can be one of the following:
Examples:
|
| A layer defining the area of interest used to extract the input features. Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
|
| A Boolean value that specifies whether the features in the input layer are clipped within the Values: |
| A keyword defining the output data format for the extracted data. Values: The default is If |
| The name of the item on your My contents page. For more information on these item properties, see the Item resource page in the ArcGIS REST API. Syntax:
|
|
The Context parameter contains the following additional settings that affect task operation:
Syntax:
|
| The response format. The default response format is Values: |
Response
When you submit a request, the service assigns a unique job ID for the transaction.
Syntax:
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}
Check job status
After the initial request is submitted you can use the job
to periodically check the status of the job and messages as described in Check job status. Once the job has successfully completed, use the job
to retrieve the results. To track the status, you can make a request of the following form:
http://<analysis url>/ExtractData/jobs/<jobId>
Analysis results
When the status of the job request is esri
, you can access the results of the analysis by making a request of the following form:
http://<analysis url>/ExtractData/jobs/<jobId>/results/contentID?token=<your token>&f=json
Parameter | Description |
---|---|
| The result has properties for parameter name, data type, and value. The value property contains the item ID and a URL to the item.
Consider the following about the item contents:
|