Select to view content in your preferred language

Time Aware ArcGISImageServiceLayer, SDK 10.2

636
1
02-19-2014 11:18 AM
TimJohns
Emerging Contributor
I don't see setCurrentTimeExtent(), getTimeInfo() or similar time-aware methods on ArcGISImageServiceLayer in the Android SDK 10.2.  I tried a few things, including treating the ArcGISImageServiceLayer as an ArcGISDynamicMapServiceLayer, with no luck.

Any tips or suggestions for getting imagery for a given time, using the Android SDK?

The REST API seems to support it -- for instance I should be able to look for deltas in the NDVI over time by querying http://imagery.arcgisonline.com/arcgis/rest/services/LandsatGLSChange/NDVI_Difference_2005_2010/Imag....

I WANT to be able to do something similar to this:

       public void onStatusChanged(Object source, STATUS status) {
            if (OnStatusChangedListener.STATUS.INITIALIZED == status && source == mMapView) {
                ArcGISDynamicMapServiceLayer layer = (ArcGISDynamicMapServiceLayer) mMapView.getLayer(0);
                MapServiceInfo mapServiceInfo = layer.getMapServiceInfo();
                TimeInfo timeInfo = mapServiceInfo.getTimeInfo();
                if (timeInfo != null) {
                    timeExtent = timeInfo.getTimeExtent();
                    interval = timeInfo.getTimeInterval();
                    units = timeInfo.getTimeIntervalUnits();
                    timeReference = timeInfo.getTimeReference();
                }
            }
          }
    };



Any help appreciated, thanks!

- Tim
0 Kudos
1 Reply
TimJohns
Emerging Contributor
Just checking back in - no luck so far.  I have been able to bang out a couple of REST-based non-SDK pieces of code that show the server's doing what's expected, but no luck on the client side on either Android or pure Java.
0 Kudos