Raster inputs to a gpk in Runtime

4090
1
07-29-2014 02:34 PM
Labels (1)
JoshuaTharp
New Contributor II

What methods are there to specify elevation / raster input (DTED) to a gpk file that will run locally?

Id like to calculate a viewshed based on:

  • A layer in the table of contents, this is likely to be a mosaic DTED layer. (Given a mpk file that already has the DTED layer added.)
  • A directory containing files on the file system.

More questions:

Given a directory of DTED data can we run a model / gpk that will create a mosaic layer that can be added to the Runtime Map?

Can we specify a layer on the runtime map as a parameter to the viewshed model we build?

The idea is that either the user will start with a mpk file that has elevation data or they will add the elevation data at runtime via a add data functionality similar to Arc Map (even if we have to build the mosaic at runtime as well).

They will then create a viewshed based on the data that is either present in the mpk or added later.

0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor

Hi,

GPRasterData and GPRasterDataLayer are not supported inputs to a GP Service running in the LocalServer (the LocalServer cannot accepted raster data directly nor can it accept a URL and automatically download the referenced raster, unlike the full ArcGIS Server). You will need to use a GPString data type then use one of the model-only tools (or just python if you are scripting this) to use the string as a path to the raster. The string could represent a directory, in which case your model/script can iterate the raster datasets in the directory. The result will need to be rendered in a result map service, for which there is a sample: ArcGIS Runtime SDK for WPF Samples.

Direct support for rasters is on the roadmap for the ArcGIS Runtime, as well as an increasing number of operations which can be run on those rasters. Note this will be introduced in the new ArcGIS Runtime SDK for .NET (currently in beta) rather than the existing ArcGIS Runtime SDK for WPF. However, for now the support continues to be via the LocalServer.

Cheers

Mike

0 Kudos