Original User: vdkamp
I�??ve got a (Python) model which requires a raster layer as input. This model is shared as a geoprocessing service with the input mode for the raster layer input �??User defined value�??. A geoprocessing service is created with a GPRasterDataLayer as input.
To the ArcGIS Server, where the geoprocessing service is published, a registered (Oracle Spatial) database is added as a data store. In this database are several raster datasets available which can be used as input for the processing service.
My application uses a CSW catalogue for the selecting relevant raster datasets. The name of the raster datasets in the geodatabase is one of the properties of the CSW ouput (e.g. CREATOR.my_data).
But I can�??t get it working; passing a reference to a raster dataset in the registered database from my Flex API based application to the geoprocessing service.
Should I use a string as input parameter and add functionality to the script to create the raster layer? If so: how do I do that? Or do I have to create some sort of layer object in my application and pass this on to the processing service? Can the environment parameter 'Current Workspace' be used in some way?