Can a raster service be used as input to a GPK that uses the LOS tool?

3864
2
08-27-2015 07:24 AM
JosephMcCausland
Esri Contributor

I'm looking into Runtime SDK 10.2.6 for .NET if it can support using raster services as input to a GPK that uses the line of sight tool.  I created a model and generated a GPK from a successful run.  The local server shows the service input as type GPRasterDataLayer and this is supported by the GPRasterData object.  Can you create a GPRasterData parameter with a url to a service?

Trying to use http://elevation.arcgis.com/arcgis/services/WorldElevation/Terrain/ImageServer

I get the following {"Error code '400' : 'Unable to complete operation.'"}

0 Kudos
2 Replies
AnttiKajanus1
Occasional Contributor III

Hi,

From my understanding you cannot create GPRasterData parameter from (elevation) service so using it as a parameter for a runtime GP model won't work.

0 Kudos
ChristinaKochan1
Occasional Contributor

Did you ever figure out how to create the GPRasterData using the service path?

0 Kudos