4

The TimeSlider functionality in the ArcGIS Server JS API is great for working with time-based vector features - you can scroll forwards and backwards through time to see the vector features which existed at a given time instant.

Has anyone created a similar time-slider for rasters?

I have a series of monthly weather grids which I'd like to display, allowing the user to scroll to any month (eg, show me the average rainfall for June).

The time-slider relies on the featureclass being defined in ArcMap with a Time attribute, but this isn't available for raster layers.

The best workaround I can think of is:

  • create a separate map document for each raster
  • build a separate tiled map service from each map document
  • add a DOJO slider to the map, with increments to mark each raster
  • use JavaScript to switch the appropriate raster on at each mark on the DOJO slider

Is anyone aware of a better/faster approach? This will be quite a laborious process as it will mean creating and maintaining multiple MXDs and MSDs.

Thanks

asked Sep 16, 2011 at 4:43

1 Answer 1

5

The new mosaic datasets are time-aware and can be published as image services (requires Image extension)

Esri has a javascript sample , and if you look at the image service details you can see that there is a time extent along with the normal spatial extent, and even the Query operation supports time.

This is definitely a neater solution (provided you have access to the Image Extension), but under moderate load or large extents, I would speculate that switching between tiled services could be faster.

Devdatta Tengshe
41.8k37 gold badges147 silver badges267 bronze badges
answered Sep 16, 2011 at 5:43
1
  • Genius, thanks for that. I haven't worked with Image services yet so I didn't realise they were time-aware. This should make things a lot easier Commented Sep 16, 2011 at 5:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.