HOW TO

Create a time animation from a shapefile

Last Published: April 25, 2020

Summary

To create a time animation, Date/Time data is required. The Date type fields in a shapefile support either the date or the time, but not both in the same field.

Sometimes, a problem arises when exporting a geodatabase feature class containing a Date/Time field to a shapefile. After exporting, the time value in the shapefile is truncated. Only the date value is maintained.

Shapefiles containing date and time data in a String type field can still be used to create a time animation to visualize temporal data over time.

This article describes how to create a time animation using a shapefile.

Procedure

  1. In the shapefile attribute table, use a Text type field and reformat the date and time values by removing any unnecessary text. Use the appropriate date and time format. For example, YYYY-MM-DD hh:mm:ss would be written as 2017-06-11 01:23:45.
Field with Date/Time data
Note:
The Field Calculator can be used to remove unnecessary text in the field attributes. For more information, refer to the following ArcGIS Web Help topic, Making simple field calculations. Additionally, the time values must be in a supported format. Refer to the following ArcGIS Web Help topic: Supported field formats. For more information on formatting date fields, refer to the following ArcGIS Web Help topic, Fundamentals of date fields.
  1. Enable time on the new layer and edit the layer properties.
    1. Open the properties of the new layer and click the Time tab.
    2. Check the Enable time on this layer check box.
    3. Select the field containing the date and time data in the Time Field drop-down list.
    4. Select the respective field format in the Field Format drop-down list.
    5. Click the Calculate button to calculate the layer time extent.
    6. Set the Time Step Interval.
    7. Check the Display data cumulatively check box.
    8. Click OK.
       
      Time properties
  1. Open the Time Slider window [O-Image] and click Options. This opens the Time Slider Options window.
    1. In the Time Display tab, set the respective Time step interval.

      Time Slider options
    2. In the Time Extent tab, select <All time enabled data> in the Restrict full time extent to: drop-down list.

      All time-enabled data
    3. Click OK.
  2. Click the Enable time on map option  in the Time Slider window and play the animation. The temporal data is displayed over time in the map.

Article ID:000012836

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic