Reader small image

You're reading from  ArcGIS Pro 2.x Cookbook

Product typeBook
Published inFeb 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788299039
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Tripp Corbin GISP
Tripp Corbin GISP
author image
Tripp Corbin GISP

Tripp Corbin GISP has over 25 years of experience in the geospatial industry and is recognized as an industry expert in a variety of geospatial software platforms, including Esri, Autodesk, and Trimble products. He has assisted numerous organizations in implementing GIS to help solve problems and improve operations. He holds multiple certifications, including as a certified GIS professional, Esri-certified enterprise system design associate, and Esri-certified desktop professional. He is also the former president of URISA and the local Georgia Chapter. In recognition of his contributions to the GIS community, he has received several awards, including the URISA Exemplary Leadership award and the Barbara Hirsch Special Service award.
Read more about Tripp Corbin GISP

Right arrow

Chapter 3. Linking Data together

In this chapter, we will cover the following recipes:

  • Joining two tables
  • Labeling features using a joined table
  • Querying data in a joined table
  • Creating and using a Relate
  • Joining features spatially
  • Creating and using a relationship class using existing data

Introduction


You now know that GIS data includes more than just what you may see in a map. Each layer has additional information linked to it which is stored in an Attribute Table. Also, not all data you display in a map is stored in a traditional GIS format. Some may be stored in standalone tables or even spreadsheets. These can also be displayed in a map if they include an address or x and y coordinates.  

However, there is a lot data out there in various databases which may not have x and y coordinates, or an address, or even be part of our GIS, but we need to be able to use that information to perform queries, display information, or conduct analysis in the GIS. This data may come from other systems, such as tax appraisal, permitting, inspections, work order, and asset management systems. If we want to use data stored in these systems we must be able to link it to our GIS data. ArcGIS Pro provides a couple of methods to do this, Join and Relate.

At other times, we may need to transfer...

Joining two tables


Join is one of two basic methods which can be used to link data in ArcGIS Pro. Joins link two datasets together to create a single virtual dataset within a single map in a project. This allows you to use the joined data to query, label, and symbolize using the information from both joined datasets.

In this recipe, you will join the Parcel layer to a table which contains a list of owner names. You will learn the requirements needed to join two tables and how to complete the join. 

Getting ready

For this recipe, you will need to ensure that you have installed the book data and have ArcGIS Pro installed. An ArcGIS Pro Basic license level will be sufficient for this recipe.

How to do it...

  1. To begin, you will need to start ArcGIS Pro.
  2. In the ArcGIS Pro start window, click on Open another project.
  3. Select Computer from the Open window and then click Browse in the area on the right:
  1. Navigate to C:\Student\ArcGISProCookbook\Chapter3\Joining Data by clicking on C:\ in the area on the left...

Labeling features using a joined table


Now that you have learned how to join tables, and seen how it links them to provide more information, what can you do with that information? In short, you can do anything with the joined information that you can do with the normal attributes in the layers Attribute Table.  

In this recipe, you will learn how you label features using the data from the joined table. You will label each parcel with its PIN and Owner Name. You will use the new Arcade language to do this. You will learn more about Arcade in Chapter 11, Introducing Arcade.   

Getting ready

You will need to have completed the previous recipe before you can begin this one.    

How to do it...

  1. If you closed ArcGIS Pro after completing the previous recipe, open the Joining Data.aprx project by following the same instructions as shown in the beginning of the previous recipe.
  2. Click on Bookmarks on the Map tab in the ribbon. Select the Labeling bookmark. This will zoom you in to an area located in the...

Querying data in a joined table


Labeling is not the only thing you can do with a joined table. You can also use the joined information to perform queries and analysis. In this recipe, you will perform a query to locate all the parcels owned by the City of Thomaston. You will then export that information to a spreadsheet using a geoprocessing tool.

Getting ready

You must have completed the recipe titled Joining two tables from this chapter before you can perform this recipe. You will also need to have Microsoft Excel or a similar application installed which will open a spreadsheet.

How to do it...

  1. If you closed ArcGIS Pro after completing the previous recipe, open the Joining Data.aprx project by following the same instructions as shown in the beginning of the previous recipe. Otherwise continue with this recipe.
  2. Click on the Map tab in the ribbon.
  3. Click on the Full Extent button in the Navigate group on the Map tab. It looks like a small globe.
  4. Click on the Select by Attributes tool in the Selection...

Creating and using a Relate


A Join is just one of the basic methods you can use in ArcGIS Pro to link data together. Another method is a Relate. A Relate links two tables together, but unlike a Join, which adds information to the primary table, the two tables remain separate when related. This allows you to see all the related records in the linked table.

A Relate works best when you have one record in your primary table which matches to multiple records in the linked table, or when you have multiple records in the primary that match multiple records in the linked table. In these situations, a Join would not work as well because it would have multiple records which match.   

In this recipe, you will create a Relate between the Parcels and a land sales table. The land sales table contains all parcels sales which have occurred over the last several years. This table also comes from the County’s CAMA system, like the Owners table did. Once you relate the two tables, you will see how you can view...

Joining features spatially


So in the previous recipes, you have seen how you can link external data to layers or other tables using a Join or a Relate. However, what if you want to transfer data from one layer to another but there is no key field to use to link the data. Maybe the two layers in question overlap one another, or are next to one another, or share some other spatial relationship, surely there should be some way to link or join the two layers together based on a spatial relationship.

You can join two layers together based on a spatial relationship. This is called a Spatial Join. A Spatial Join creates a new feature class which adds the attributes from the joined feature class to the target feature class based on a spatial relationship you define when you run the tool. It is not required that the target and joined feature classes be the same type. You can spatially join lines with polygons, or points with lines, or points with polygons, as well as those of the same feature type...

Creating feature linked annotation


You have now seen how to link data together based on a common key field using a Join or Relate, based on a spatial relationship. These methods are extremely useful. However, they do have limitations. Joins and Relates only exist in a single map and do not transfer easily to other maps or projects. Spatial Joins create new feature classes or tables while still leaving the original data unaltered. So, is there a way to permanently link two tables or two feature classes together?

The answer is yes, if the data is all in the same geodatabase. In a geodatabase, you can create a relationship class. A relationship class permanently links data together and the link carries over into any map, scene, or project you use the data in. You can create a relationship class between two feature classes, two standalone tables, or a feature class and a standalone table.

Relationship classes provide greater flexibility than the other methods we have looked at in previous recipes...

Creating and using a relationship class using existing data


You have seen the power of a relationship class in the previous recipe. You saw how linking two feature classes together allowed you to not only access information about the linked features but also control some behavior. However, this was all automatically set up by the Convert to Annotation tool. In many cases, the data you wish to link together already exists. So how do you create a relationship class which would link that existing data together?

In this recipe, you will create a relationship class between a feature class and a standalone table. This will be between the same parcel layer and sales table you related in the Creating and using a Relate recipe earlier in this chapter.  However, once you establish the relationship class, the link becomes permanent, unlike the relate which is limited to the map in which it was created.

Getting ready

To complete this recipe, you will need a Standard or Advanced license of ArcGIS Pro. A...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
ArcGIS Pro 2.x Cookbook
Published in: Feb 2018Publisher: PacktISBN-13: 9781788299039
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Tripp Corbin GISP

Tripp Corbin GISP has over 25 years of experience in the geospatial industry and is recognized as an industry expert in a variety of geospatial software platforms, including Esri, Autodesk, and Trimble products. He has assisted numerous organizations in implementing GIS to help solve problems and improve operations. He holds multiple certifications, including as a certified GIS professional, Esri-certified enterprise system design associate, and Esri-certified desktop professional. He is also the former president of URISA and the local Georgia Chapter. In recognition of his contributions to the GIS community, he has received several awards, including the URISA Exemplary Leadership award and the Barbara Hirsch Special Service award.
Read more about Tripp Corbin GISP