I have an Image Service (Mosaic Dataset being served) that shows changes over time. I got the time slider working but I am not able to use the ImageServiceIdentifyTask to get the pixel value of only the currently visible raster in the dataset (the one that is visible at that point in time). I currently get values returned for ALL of the rasters in the catalog and don't know which is from the visible one.
args.Results.CatalogItemVisibilities has only one raster set to 1.0, the others all 0.0... but it is always the one at index 0, so that doesn???t help me find the right value in args.Results.Properties["Values"].
I see a few things I could do but not sure exactly how:
1) Set a MosaicRule in the ImageServiceIdentifyParameters and set the FIDs list to only contain the FID of the currently visible raster... but how might I get this FID?
2) Set a MosaicRule in the ImageServiceIdentifyParameters and set the Where property to something like: "start_date_field >= map.TimeExtent.Start and end_date_field <= map.TimeExtent.End"... but how to I dynamically get the fields that are used for "x_date_field"?
I like number 1 best, but not sure how to get info (namely FID) about what raster is currently visible based on the current time.
Any ideas would be great!
Thanks a lot!!!