I’m trying to run a custom Python geoprocessing (GP) tool published to ArcGIS Enterprise Server that takes GPFeatureLayer (Lines, Points) and Raster Layer as input (an ImageServer URL) and wrote a Custom Widget in ArcGIS Javascript SDK. But i can't seem to get the Raster Data and use it. The tool itself works fine in the ArcGIS Pro.
I developed other GP Tools without Raster Data and published to Server and they seem to working.
What should I pay attention to? In Python code i use CopyRaster to download the raster then use it and it works just fine in the ArcGIS.
REST Services Raster:
Parameter: input_raster
Data Type: GPRasterDataLayer
Display Name Input Raster Layer
Description: Raster
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
In the JS Script i fetch the raster like this: