- ArcGIS Pro 2.x Cookbook
- Tripp Corbin GISP
- 393字
- 2021-06-24 19:10:49
How to do it...
- Start ArcGIS Pro and open the Plot XY from Table.aprx project located in C:\Student\ArcGISProCookbook\Chapter2\.
- In the Catalog pane, expand the Databases folder.
- Expand the Trippville_GIS database so you can see the contents.
- You should see a Crimes_2014 database table. Right-click the table and select Add to Current Map:

- The Crimes_2014 table should appear in the Contents pane. Right-click the table and click Open.
Question: What fields do you see in the table?
Answer:
You should see six different fields. Most important are the two at the end, Lat and Long. These are the coordinates that identify the location of each crime. You will now use those to create points in your map that show the location.
- Close the table by clicking the small X in the tab at the top if the table.
- Right-click the table in the Contents pane and select Display XY Data:

- The Geoprocessing pane should open with the Make XY Event Layer tool. It should automatically populate with the required variables. Verify that yours looks like the following image. If it does, click Run. If not, make the appropriate adjustments:

- A new layer named Crimes_2014_Layer should appear in the Contents pane. If it does, close the Geoprocessing pane.
If the Spatial Reference is not set to GCS_WGS_1984, click the small globe to set it correctly. You will need to go to Geographic Coordinate System and World.
The US GPS system reports positions using the WGS 1984 geographic coordinate system. You will learn more about coordinate systems and how they work in ArcGIS Pro later in this book.
- Right-click on Crimes_2014_Layer in the Contents pane. Select Attribute Table.
- Compare what you see in the attribute table to what you saw when you opened the Crimes_2014 table. They should be the same, with one exception.
Question: What is the one exception?
Answer:
- Save your project and close ArcGIS Pro.
The layer you created is still linked to the original table. So, if the table changes, so does the layer. This same process works with spreadsheets, CSV files, and text files, as long as they are formatted similarly. The coordinates do not have to be latitude and longitude. They can be in any real-world coordinate system, such as State Plane, UTM, or WGS 84 Web Mercator Auxiliary Sphere, as long as you know what it is.