get and display single cell raster value

2640
4
02-28-2014 06:19 AM
Labels (1)
FrancoisGilbert
New Contributor
Hello,

I have an application that display precipitation forecast for the comming days. From my mouse coordinate that I know, is there a way for me to retreive the value of a raster cell that would represent the precipitation at a certain point. That would be like an identify task but for a raster layer.

Regards
0 Kudos
4 Replies
FrancoisGilbert
New Contributor
It sounds like a simple question.

françois
0 Kudos
BKuiper
Occasional Contributor III
using the WPF SDK you would need to make a GPK that gets the value from your raster (TIFF) file. But yes, it is possible.
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

Bjorn's correct, you can use the geoprocessing tool GetCellValue within a geoprocessing package (GPK) in the ArcGIS Runtime LocalServer (either written as a Model or a Python Script. I suggest running it as a LocalGeoprocessingService of type Execute because it should be a fast operation and does not require the overhead of monitoring progress via the SubmitJob type.

For more information see:
- Supported GP Tools: http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Supported_geoprocessing_tools/0...
- GetCellValue Tool: http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000m8000000
- How to create a GPK: http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/How_to_create_a_Geoprocessing_p...
- GPServiceType: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client.Local~ESRI.ArcG...

Regards

Mike
0 Kudos
FrancoisGilbert
New Contributor
Hello,

So the gpk is one alternative. If my time serie raster data that is stored in a mosaic dataset as a map package, I wonder if it is possible to use the class 'ImageServiceIdentifyTask' instead of the gpk tool. I do not know if 'ImageServiceIdentifyTask' tool wil work with a time enabled mosaic dataset.

reference#
http://forums.arcgis.com/threads/62570-identifytask-returning-Null-with-raster-layer?highlight=Image...

p.s. I am also planning to publish the weather forecast maps throught ArcGis Server this year.

François
0 Kudos