Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ArcGIS Pro 2.x Cookbook

You're reading from   ArcGIS Pro 2.x Cookbook Create, manage, and share geographic maps, data, and analytical models using ArcGIS Pro

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781788299039
Length 704 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Tripp Corbin, GISP Tripp Corbin, GISP
Author Profile Icon Tripp Corbin, GISP
Tripp Corbin, GISP
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. ArcGIS Pro Capabilities and Terminology FREE CHAPTER 2. Creating and Storing Data 3. Linking Data together 4. Editing Spatial and Tabular Data 5. Validating and Editing Data with Topologies 6. Projections and Coordinate System Basics 7. Converting Data 8. Proximity Analysis 9. Spatial Statistics and Hot Spots 10. 3D Maps and 3D Analyst 11. Introducing Arcade 12. Introducing ArcGIS Online 13. Publishing Your Own Content to ArcGIS Online 14. Creating Web Apps Using ArcGIS Online 1. Other Books You May Enjoy Index

Adding and configuring layers


Now you know how to start ArcGIS Pro and open a project so you can begin accessing functionality. You have learned how to open an existing map and navigate within the map. You can even see information about features displayed within the map using the Explore tool.

But how did those layers get added to the map? How did ArcGIS Pro know how to display the layers you saw within the map? That is your next step in your ArcGIS Pro journey.

In this recipe, you will learn various methods for adding new layers to a map. You will then discover how to configure various properties associated with a layer, such as its name and symbology.

Getting ready

If you have already completed the previous recipes, you should be ready for this one. If you have not completed them, you will need to do so. This recipe builds on the past ones.

How to do it...

  1. Start ArcGIS Pro and open the Chapter 1 Ex 1A.aprx project if you closed ArcGIS Pro at the end of the last recipe.
  2. Open the map named Map if it is not already open.

Note

If you are not sure how to open the map, you should refer back to the previous exercise.

As you can see, this is a very simple map. You will want to add some new layers to show additional information.

  1. Click the Add Data button. Do not click the words Add Data. You want to click the icon located above the words.
  2. In the left window in the Add Data dialog box, expand Project by clicking the small arrowhead located to the left of Project if you do not see the contents in the following image.
  1. Double click Databases so you see two databases in the window to the right of the dialog box. You should see the Chapter 1 Ex 1 and Trippville_GIS geodatabases:
  1. Double-click the Trippville_GIS geodatabase to reveal its contents.
  2. Double click the Base feature dataset.
  3. Select the Buildings feature class.
  4. While holding down the Ctrl key, click the Natwtr_Body and Natwtr_Stream feature classes.
  5. Once you have selected those three feature classes, click OK to add them as three new layers to your map.

You have just added three new layers to your map using the Add Data button. This is just one of several methods that you can use to add a new layer to a map. You will use some other methods later in this recipe. Now, you will adjust some of the properties associated with the layers you just added.

Note

When you add a new layer to a map in ArcGIS Pro, the software will display the new layer using a random color. Also, it will automatically add the new layers to your map contents based on what type of layer it is. Point layers will be added to the top. Line layers will be added below points. Polygon layers will be added below the line layers. Raster layers are added below the polygons, and base maps are placed at the very bottom. In a map, the drawing order starts with the layers at the bottom of the list and draws each succeeding layer on top of the previous, so that the last layer drawn is the one on the top of the list.

  1. Right-click the Natwtr_Stream layer you just added to your map and select Properties, located at the bottom of the menu that appears.
  2. Click through the list of options located in the window on the left of the dialog box. Look at some of the properties of the layer that you can configure from this dialog box. You will make some adjustments to these as you work through the recipe.
  3. In the Layer Properties dialog box, select General from the window on the left side.
  4. In the cell located below Name, where it says Natwtr_Stream, replace that with Streams and Creeks.
  5. Click Metadata in the left window.
  6. Type the following values into the metadata as shown in the screenshot:
    • Title: Streams and Creeks
    • Tags: Natural Water, Streams, Creeks
    • Summary: Streams and Creeks located in the City of Trippville
    • Description: This layer shows the general location of most creeks and streams located in and around the City of Trippville.
    • Credits: eGIS Associates, Inc.
    • Use Limitations: This data is for training use only

Your Layer Properties window should now look like the preceding screenshot. 

  1. Click OK to apply the changes you have just made to the properties of the Natwtr_Stream layer.
  2. Repeat this process for the Natwtr_Body layer you added using the following values to update its properties. Remember to click OK when you're done:
    • General: Name: Lakes and Ponds
    • Metadata:
      • Title: Lakes and Ponds
      • Tags: Natural Water, lakes, ponds
      • Summary: Lakes and ponds located in the City of Trippville
      • Description: This layer shows the general location of most lakes and ponds located in and around the City of Trippville.
      • Credits: eGIS Associates, Inc.
      • Use Limitations: This data is for training use only

Now you will move the Streams and Creeks layer so it is beneath the Lakes and Ponds layer.

  1. Select the Streams and Creeks layer in the Contents pane.
  2. Holding your left mouse button down, drag the layer so it is below the Lakes and Ponds layer. Your Contents pane should look similar to the following image when you are done. Remember, your colors may be different:
  1. Click the symbol patch located beneath the Lakes and Ponds layer so you can adjust the Symbology settings.
  1. The Symbology pane will open on the right side of the interface. Make sure you are viewing the Gallery and type lake into the search cell:
  1. Select one of the presented symbols. Any will work.
  2. Click the Properties tab located next to Gallery in the Symbology pane, as illustrated in the following screenshot:

  1. Click the drop-down arrow for the Outline Color, select Cretan Blue from the color palette that is presented.
  2. Set the Outline Width to 1 pt, as shown here:
  1. Click Apply, located at the bottom of the Symbology pane.
  2. Following that same process, click the symbol patch for the Streams and Creeks layer.
  3. Search Stream in the Gallery and select the Water (Line) symbol that should be presented.

Your map should now look like this. The color of the Buildings layer may be different, depending on what ArcGIS Pro assigned it when you added the layer:

  1. Now you will change the symbology for the buildings so that you can determine the type. Select the Buildings layer in the Contents pane.
  2. Select the Appearance tab in the Feature Layercontextual menu in the ribbon.
  3. Click the small arrowhead located below the Symbology button.
  4. Select Unique Values from the presented menu.
  5. The Symbology pane will open once again, though it will look a bit different. Next to Field 1, click the drop-down menu and select Building Type.
  6. Click the Color scheme and select a desired color scheme, such as Basic Random. Notice the symbology for the Buildings layer has changed in the Contents pane to reflect your new symbology settings.
  7. Close the Symbology pane.
  1. Right-click the Buildings layer in the Contents pane and select Zoomto Layer. You can now see the type for each building, as shown in the following screenshot. Your buildings may be displayed with different colors depending on the color scheme you selected:
  1. Save your project by clicking the Project tab in the ribbon and selecting Save.

It is recommended that you save your projects often. This will help to prevent you from losing work if ArcGIS Pro or your system experiences a problem.

  1. In the Catalog pane, expand the Databases folder by clicking the small arrowhead located to the left.

Note

If you accidentally close the Catalog pane or Contents pane, click on the View tab in the ribbon to reopen them. 

  1. Expand the contents of the Trippville_GIS geodatabase.
  2. Right-click the Power_Poles feature class and select Add to Current Map:
  1. The Power Poles layer has been added to you map. Right-click the symbol under the layer name to display a color palette.
  1. Select Mars Red from the color palette to change the color of the symbol for the Power Poles layer. Your map should now look similar to this one:
  1. Click the Share tab in the ribbon.
  2. Select Map File from the Save As group in the Share tab.
  3. Select C:\ in the left side of the Save Map AS MAPX File window.
  4. Scroll down if needed and double-click the Student folder.
  5. Double-click the ArcGISProCookbook folder.
  6. Double-click the MyProjects folder.
  7. In the Name cell located at the bottom of the Save Map AS MAPX File, type TrippvilleBuildingTypeMap and click Save.

You just created a Map File that will allow you to add this same map to other projects quickly and easily. You will use this file in the next recipe.

  1. Close ArcGIS Pro and save your project if asked to.

How it works...

In this recipe, you started by adding new layers to a map. You added multiple layers at one time using the Add Data button. Once you added the new layers, you began to adjust their properties so that they would be more useful within the map. First, you renamed the layer using a more descriptive and understandable name than the one originally associated with the feature class in the geodatabase. Then, you updated the metadata for the layer so others using the map would have a better understanding of its purpose.

After you updated some of the basic properties of the layers you added, you worked on the symbology so that the map was easier to read. You made the Streams, Creeks, Lakes, and Ponds layers blue so they resembled the features they represent, also, people are accustomed to seeing them presented this way in a map. You made these adjustments by clicking the symbol patch located beneath each layer and then changing the symbol properties in the Symbology pane.

The Buildings layer required a little more effort, because you needed to change the symbology so that you could tell each building type from within the map. This required you to base the symbology on an attribute of the buildings that was stored in a field found in the attribute table of the Buildings layer. To do this, you went to the Appearance tab and selected the Unique Values symbology. Then, you configured this symbology type to use the Building Type field from the attribute table for the layer. Once you pointed the symbology type to that field, it automatically created a unique symbol for each building type it found. In this case, it created a unique symbol allowing you to determine the type of buildings (for example, houses or apartments). 

You added the Power Poles layer from the Catalog pane by right-clicking the feature class within the geodatabase and selecting Add to Current Map. You then adjusted the color of the Power Poles symbol to red by right-clicking the symbol and selecting Mars Red from the presented color palette.

Finally, you created a Map File based on the map you made, so you will be able add the map to other projects quickly and easily. The map will be added with all the layer properties and settings that you just configured, so you will not need to go through that process again. 

You have been reading a chapter from
ArcGIS Pro 2.x Cookbook
Published in: Feb 2018
Publisher: Packt
ISBN-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.
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 $19.99/month. Cancel anytime
Banner background image