- URL:
- https://<imageservice-url>/update
- Methods:
POST
- Required Capability:
- Edit
- Version Introduced:
- 10.1
Description
The Update Raster operation is performed on an image service resource.
The Update Raster operation updates rasters (attributes and footprints, or replaces existing raster files) in an image service (POST only).
In most cases, this operation is used to update attributes or footprints of existing rasters in an image service. In cases where the original raster needs to be replaced, the new raster can be either items uploaded using the items
parameter or URLs of published services using the service
parameter.
When service
is specified, the image service adds this URL to the mosaic dataset. The service
parameter is required input for the following raster types: Image Service, Map Service, WCS, and WMS.
You can provide arguments to the Update Raster operation as query parameters defined in parameters table below.
Request parameters
Parameter | Details |
---|---|
|
The response format. The default response format is Values: |
(Required) | Description: The object ID of the raster catalog item to be updated. Syntax: Example: |
| Description: The uploaded items (raster files) being used to replace existing raster. Syntax: Example: |
| Description: The URL of the service to be uploaded to replace existing raster data. The image service adds this URL to the mosaic dataset. The Example: |
| Description: If Values: |
| Description: If Values: |
| Description: If Values: |
| Description: The factor (times raster resolution) used to populate the MinPS field (the minimum cell size above which a raster is visible). Syntax: Example: |
| Description: The factor (times raster resolution) used to populate the MaxPS field (the maximum cell size below which a raster is visible). Syntax: Example: |
| Description: A JSON 2D polygon object that defines the footprint of the raster. If the spatial reference is not defined, it defaults to the image service's spatial reference. Syntax: Example:
|
| Description: Any attribute for the uploaded raster. Syntax:
Example:
|
| Description: The geodata transformations applied to the updated rasters. A geodata transformation is a mathematical model that performs geometric transformation on a raster. It defines how the pixels will be transformed when displayed or accessed, such as polynomial, projective, or identity transformations. The geodata transformations are applied to the updated dataset. The following is the JSON representation of transformations: Syntax:
The syntax of the |
| Description: Defines how to apply the provided Values: |
Example usage
Update raster visibility and other attributes by specifying the following post request content:
raster
Update an image's georeferencing by providing the following post request content:
raster
JSON Response syntax
{
"updateResults" : [
{
"rasterId" : <rasterId1>,
"success" : <true | false>,
"error" : { //only if success is false
"code" : <code1>,
"description" : "<description1>"
}
}
]
}
JSON Response example
{
"updateResults" : [
{
"rasterId" : 10,
"success" : true
}
]
}