Introduction to raster operations

RasterOperationMapViewer
Map Viewer analysis pane displaying the list of available raster analysis operations.

What are raster operations?

A raster operation, also known as a task or geoprocessing operation, is a web service endpoint designed to work with raster data. Raster operations allow you to run a specific analytical process on a raster dataset like classification, change detection, terrain analysis, spatial interpolation and more. Performing a raster operation results in the creation of a new raster dataset.

You can use raster operations to:

  • Classify pixels into categories, such as land cover types or water features.
  • Compare raster datasets from different time intervals to detect, identify and quantify change, such as urban sprawl or vegetation loss.
  • Calculate terrain attributes like aspect, slope or hillshade.
  • Create elevation models to predict variables such as temperture or precipitation.
  • Predict habitat suitablity for conservation planning or wildlife management.
  • Predict flood risk for emergency response planing, floodplain management and infrustructure development.
  • Assess and manage natural resources like forests, water bodies and agricultural land.

What raster operations are available?

The raster analysis service contains a number of operations that you can access and use in your applications. These operations are grouped by category by the type of analysis they perform:

For a list of all the raster operations supported by the raster analysis service, go to Types of raster operations

How to perform a raster operation request

The general steps to perform an analysis with a raster operation are:

  1. Get your raster analysis service URL.
  2. Identify the operation you would like to perform.
  3. Provide the input parameter values.
  4. Make the request.
  5. Handle the results.

Example

This example shows how to perform a SummarizeRasterWithin raster operation request using the raster analysis service.

Request
cURLcURLHTTP
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

curl "{YOUR_RASTER_ANALYSIS_SERVICE_URL}/SummarizeRasterWithin/submitJob" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "token={access_token}" \
-d "f=json" \
-d "zoneField=COUNTY_FIPS" \
-d "outputName={"serviceProperties": {"name": "Summaize_within_rest_api","capabilities": "Image, TilesOnly"},"itemProperties": {"description": "output generated from the summarizeRasterWithin operation in postman","title": "Summarize raster within"}}" \
-d "statisticType=Mean" \
-d "inputZoneLayer={"url":"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Census_Counties/FeatureServer/0","filter":"STATE_NAME = 'Alabama'","itemId":"14c5450526a8430298b2fa74da12c2f4"}" \
-d "inputRasterLayerToSummarize={"url":"https://tiledimageservices3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/US_Annual_Temperature/ImageServer"}"
Response
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

{
  "jobId": "{JOB_ID}",
  "jobStatus": "esriJobNew"
}

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