An object that defines the drawing information for image service based layers.
Referenced by: Image Service Layer (ArcGISImageServiceLayer), Tiled Image Service Layer (ArcGISTiledImageServiceLayer), Web Coverage Service Layer (WCS)
Properties
| Property | Details |
|---|---|
| activePresetRendererName | The name of the active preset renderer, if the image service layer's current renderer is from preset renderers. Must be one of the following values:
|
| definitionExpression | SQL-based definition expression string that narrows the data to be displayed in the layer. |
| drawingInfo | Contains the drawing information. |
| elevationInfo | Define how features and other scene elements are aligned to ground or other layers. Elevation info affects the image service layer only when using a flow renderer. |
| presetRenderers[] | An array of preset renderers for image service layers, each contains associated information of multidimensional variable or raster function template. |
Raster Layer Definition with presetRenderers Example
{
"drawingInfo": {
"renderer": {
"colorRamp": {
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [
0,
0,
255,
255
],
"toColor": [
0,
255,
0,
255
]
},
"dra": false,
"gamma": [
1
],
"max": 255,
"min": 0,
"statistics": [
[
-1,
1,
0,
0.1
]
],
"useGamma": false,
"stretchType": "minMax",
"type": "rasterStretch"
}
},
"activePresetRendererName": "NDVI",
"presetRenderers": [
{
"name": "NDVI",
"method": "rasterFunctionTemplate",
"value": "Raw NDVI",
"bandIds": [
0
],
"renderer": {
"colorRamp": {
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [
0,
0,
255,
255
],
"toColor": [
0,
255,
0,
255
]
},
"dra": false,
"gamma": [
1
],
"max": 255,
"min": 0,
"statistics": [
[
-1,
1,
0,
0.1
]
],
"useGamma": false,
"stretchType": "minMax",
"type": "rasterStretch"
}
},
{
"name": "VARI",
"method": "rasterFunctionTemplate",
"value": "Raw VARI",
"bandIds": [
0
],
"renderer": {
"colorRamp": {
"type": "multipart",
"colorRamps": [
{
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [
56,
168,
0,
255
],
"toColor": [
255,
255,
0,
255
]
},
{
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [
255,
255,
0,
255
],
"toColor": [
255,
0,
0,
255
]
}
]
},
"dra": false,
"gamma": [
1
],
"max": 255,
"min": 0,
"statistics": [
[
-0.2,
0.2,
0,
0.1
]
],
"useGamma": false,
"stretchType": "minMax",
"type": "rasterStretch"
}
}
]
}
Raster Layer Definition with flowRenderer and elevationInfo Example
{
"elevationInfo": {
"mode": "relativeToGround",
"offset": 400
},
"drawingInfo": {
"renderer": {
"visualVariables": [],
"density": 0.8,
"color": [
0,
255,
255,
255
],
"maxPathLength": 200,
"trailWidth": 1,
"flowSpeed": 10,
"trailLength": 100,
"flowRepresentation": "flow_from",
"type": "flowRenderer",
"authoringInfo": {
"type": "flow",
"visualVariables": []
}
}
}
}