官术网_书友最值得收藏!

Making the data frame and layer time-enabled

In this section, you will learn how to make a layer and data frame time-enabled. You will then add a tool to the Migration Patterns toolbox that cycles through the time range for the layer and exports a PDF map showing the movement of the elk over time and space:

  1. If necessary, open C:\ArcGIS_Blueprint_Python\ch2\ElkMigration.mxd in ArcMap.
  2. First, we'll symbolize the features so that we display them differently for wet and dry seasons. Right-click on the Betsy feature class and select Properties.
  3. Click on the Symbology tab and then define the symbology, as shown in the following screenshot:
  4. Now, select the Time tab, as shown in the following screenshot:
  5. Enable the time for the layer by clicking on the Enable time for this layer checkbox.
  6. Define Layer Time Extent by clicking on the Calculate button.
  7. Under Time properties, select Each feature has a single time field for Layer Time. Select the date field for Time Field. Define a Time Step Interval of 1 Days, as shown in the following screenshot:
  8. Define Layer Time Extent by clicking on the Calculate button circled in the following screenshot:
  9. Select Time Step Interval. You may need to reset it to 1 Days.
  10. Click on Apply and then click on OK.
  11. In the ArcMap Tools toolbar, select the Time Slider button to display the Time Slider dialog.
  12. Click on the Options button to display the Time Slider Options dialog.
  13. In the Time Display tab of the Time Slider Options dialog, make sure that Time step interval is set to 1 Days. If not, set it to 1 Days. Do this for the Time window option as well, as shown in the following screenshot:
  14. Click on OK.
  15. Switch to the Layout view in ArcMap.
  16. Add a Title text element to the layout, as shown in the following screenshot:
  17. Right-click on the New text element and select Properties; then, select the Size and Position tab, as shown in the following screenshot. Add an Element Name called title. Adding Element Name is important because we'll reference it in the script that we write, which automatically updates the title to include the current date:
  18. Save your map document. It's very important that you save the time-enabled data with your map document. The code you write next won't work unless you do this.
主站蜘蛛池模板: 南漳县| 建平县| 潜江市| 晋江市| 西畴县| 忻州市| 竹山县| 平果县| 宁强县| 安达市| 金乡县| 拜城县| 砀山县| 靖西县| 红原县| 如东县| 靖宇县| 靖宇县| 临漳县| 无为县| 嘉荫县| 峨山| 伊宁县| 凌云县| 淮阳县| 盖州市| 耿马| 白玉县| 紫云| 河西区| 南开区| 蒲江县| 岑溪市| 奉化市| 雷山县| 广饶县| 乌海市| 五华县| 博野县| 耒阳市| 三江|