Visualizing Time in ArcGIS: Prepare Data in ArcGIS Pro

المشرف العام

Administrator
طاقم الإدارة
This is the first post in a three-part series on visualizing and sharing temporal data using ArcGIS. In this post, learn how to add data to ArcGIS Pro, prepare it for visualization, and share it to ArcGIS Online. *

This blog’s*most popular post ever*is about visualizing temporal data on a map. The*ArcMap workflow*described in that*post is still valid. Five and a half years later, though, we have a tightly integrated platform and new options. An exciting new desktop app. Easy ways to share GIS-driven insights with a wide audience.

It’s time to give that post a modern refresh. We’ll use the same scenario as the original post: piracy incidents in and around the Gulf of Aden.*

Add the Data to a Map

The U.S.*National Geospatial-Intelligence Agency maintains a*Maritime Safety Information portal, where you can download Anti-Shipping Activity Messages (reports of hostile acts against marine vessels) in*shapefile*format.

An ASAM shapefile downloads as a ZIP file, but contains only the DBF, SHP, and SHX files.

  • Start ArcGIS Pro and open a new project.
  • Insert a new map (on the ribbon, click the Insert tab, then click New Map).
The map includes the Topographic basemap by default.

  • On the ribbon, click the Map tab. Click Add Data > Data.
  • Browse to the ASAM shapefile and add it to the map.
Because the ZIP file did not contain*the PRJ file, which provides the*coordinate system information, the ASAM layer is not properly aligned with the basemap. The data displays as a cluster of points off the west coast of Africa.

  • Not familiar with coordinate system issues? These courses cover the basics.
Explore the Data

You should always take the time to understand exactly what is represented by a dataset.



  • In the Contents pane, right-click the ASAM layer and choose Zoom to Layer.
Now it’s clear the data has a worldwide extent.

  • Right-click the layer again and choose Attribute Table.
The DateOfOcc field stores the date*(mmddyyyy) each incident occurred.*In order to*time-enable a layer, you must have at least one field that stores time data.*

  • Right-click the DateOfOcc field name and choose Sort Ascending.
The table contains thousands of records for incidents that occurred between 1978 and the end of 2015.*The SubReg field stores the*code for the*subregion where each incident occurred. For this scenario, incidents that occurred between January 1, 2010 and December 31, 2015 in subregion 62 are of interest. Subregion 62 covers the Red Sea, Gulf of Aden, and Arabian Sea.

You can easily select the features that meet your time and place criteria, then export them to a new shapefile.

Select Features of Interest

  • At the top of the table, click the Select By Attributes button.
  • In the Select Layer By Attribute dialog box, click Add Clause to build a query expression.
  • For Field, choose SubReg. The operator is set to “is Equal to,” which is correct. In the Values list, choose 62, then click Add.
  • Click Add Clause again to add the second selection criterion.
  • Choose DateOfOcc for the field.
  • Change the operator to “On or After.”
  • In the Values list, scroll down and click the first 2010 date. Click Add.
  • Click Run*and close the dialog box when the tool completes.
There are 456 selected records. These are the incidents of interest.

  • In the Contents pane, right-click the ASAM layer and click Data > Export Features.
The Copy Features geoprocessing tool opens. The output feature class will be saved in the project’s default geodatabase. If you’d prefer to create a new shapefile, you can overwrite the path and include the .shp extension in the output file name.

  • Click Run, then close the tool dialog box.
The new layer (Subregion62) *is added to the Contents pane. Next, you need to define its coordinate system.

Define the Coordinate System

  • Turn off the original ASAM layer and zoom to the extent of the new layer.
  • On the ribbon, click the Analysis tab, then click Tools and search for define*projection.*
  • Open the Define Projection (Data Management Tools)*tool.
  • For Input Dataset, choose the new layer.
  • For Coordinate System, click the graticule icon. Expand Geographic coordinate system and select World >*WGS 1984. Click OK, then click Run. Close the tool when it completes.
Now the ASAM incidents display properly with the basemap layer.*When you plan to share a layer to the web, it’s good practice to project it to the same projected coordinate system used by online basemaps and other content.

  • Click Tools and search for project.*
  • Open the Project (Data Management Tools) tool.
  • For Input Dataset, choose the Subregion62 layer.
  • For Output Coordinate System, click the down arrow and choose Current Map. The projected coordinate system used by the Topographic basemap displays.*
  • Click Run, then close the tool.
  • Turn off the unprojected Subregion62 layer.
Time-Enable the Layer

Just like in ArcMap, in ArcGIS Pro you enable time in the layer properties dialog box.

  • Right-click the Subregion62_Project layer and choose Properties.
  • On the left side of the properties dialog box, click Time.
  • For Layer Time, choose “Each feature has a single time field.”
  • For Time Field, DateOfOcc should be selected.
  • The Time Extent reflects the earliest and latest data values.
  • Click OK.
Play the Temporal Visualization

  • Hover over the top of the map window to see the time slider.
  • Click the Play button.
The Time tab provides options to change the playback properties and visualize the incidents using different time intervals and spans.

Share the Layer

The data preparation work is finished—you now have*a time-enabled layer that is ready to share. It’s easy to publish layers from ArcGIS Pro, then access them in ArcGIS Online to create web maps and apps.*

  • In the Contents pane, right-click the Subregion62_Project layer and click Share As Web Layer.
  • In the Share Web Layer dialog box, enter a summary description and tags.
  • Click Analyze to check for any errors or warnings before publishing. Errors must be resolved, warnings should be investigated and fixed if possible. For more information on publishing a web layer, see this help topic.
  • Click Publish.*By default, the web layer is shared to your My Content folder on ArcGIS Online.
That’s it.

You’ve now seen how easy it is to prepare, visualize, and share temporal data using ArcGIS Pro. In the next post, you’ll learn how to configure the web layer in ArcGIS Online and showcase it in a web map.

Related training:
For hands-on practice with tasks described in this post, the courses below are recommended.


أكثر...
 
أعلى