Select to view content in your preferred language

How to pass a raster to a GP service as a GPRasterDataLayer?

2240
1
05-12-2014 10:17 AM
SarahBalabanov1
Deactivated User
I am new to ArcGIS Server and the Javascript API. I have published a GP service whose main input is a raster, which the service has translated to the data type GPRasterDataLayer. How do I create this layer in javascript? There is no corresponding class for it in the API reference. I have tried passing the service an ImageServiceLayer but that is obviously not the solution, as I get an "invalid parameters" error message in the console. There is an entry in the API reference for a RasterData class, but no examples that show how to use it.

Any help or insight is appreciated.
0 Kudos
1 Reply
FredericPoliart_EsriAU
Frequent Contributor

I am struggling with the same issue,  The GPTask keeps returning the error:  esriJobMessageTypeError: Invalid value for parameter Input Multidimensional Raster (Image Service url) - Details : Unable to parse JSON value of the parameter.

Maybe it needs to be in JSON format 
{ "url": "https://myserver/arcgis/rest/services/crf_rcp85_all_data/ImageServer" }

https://developers.arcgis.com/rest/services-reference/enterprise/gp-data-types.htm 


0 Kudos