May 18, 2020 - This tutorial is still being actively edited. Please wait for this message to disappear before completing or printing, if you'd like to view it in its final form.


TABLE OF CONTENTS

This guide was created by the staff of the GIS/Data Center at Rice University and is to be used for individual educational purposes only. The steps outlined in this guide require access to ArcGIS Pro software and data that is available both online and at Fondren Library.

The following text styles are used throughout the guide:

Explanatory text appears in a regular font.

  1. Instruction text is numbered.
  2. Required actions are underlined.
  3. Objects of the actions are in bold.

Folder and file names are in italics.

Names of Programs, Windows, Panes, Views, or Buttons are Capitalized.

'Names of windows or entry fields are in single quotation marks.'

"Text to be typed appears in double quotation marks."

The following step-by-step instructions and screenshots are based on the Windows 10 operating system with the Windows Classic desktop theme and QGIS 3.12.3 software. If your personal system configuration varies, you may experience minor differences from the instructions and screenshots.

You must first download QGIS software to your computer.

To download QGIS onto your desktop, click here and choose the version based on your desktop system. The "Latest release (richest on features): QGIS Standalone Installer Version 3.12 (64 bit)" is preferred.


Obtaining the Tutorial Data


There are three ways of obtaining the tutorial data. The best option for getting the full GIS project experience is to follow Option 1 and learn how to download and prepare data from online GIS data portals independently. You will also gain exposure to the best GIS data websites for the Houston region.

If you have already completed the Introduction to Data Management tutorial, but did not save a copy of your files or if you would prefer to complete this tutorial first, then you may follow Options 2 or 3. Option 2 is best if you are completing this tutorial in one of our short courses or from the GIS/Data Center and Option 3 is best if you are completing the tutorial from your own computer.

Before beginning the tutorial, you will copy all of the required tutorial data onto your Desktop. Follow the applicable set of instructions below depending on the particular computer you are using.

OPTION 1: Obtaining tutorial data independently online using a personal computer

If you would like to download and prepare the data for this tutorial from scratch, follow the instructions below.

Make a new project folder named Introduction to QGIS and save to your desktop. 

 

  1. Go to the City of Houston's GIS website and click the Download button under the Open Data section. 

  2. In the search bar, type roads and click enter. 
  3. Click COH MAJOR ROAD Feature Layer.
     
  4. Click the Download dropdown button and choose the Shapefile option under the Filtered Dataset. A popup box will appear containing the compressed files. You can see the folder contains different types of files such as CPG, DBF, PRJ, SHP, and SHX. 
  5. QGIS does not recognize CPG type files. Select all of the COH_MAJOR_ROAD files except the CPG file. 
  6. Click the Extract all button. A popup window will appear. 
  7. Click the Browse button and navigate to a folder specifically for this project. Save the data to the folder. 
  8. Click the Extract button. 


 

OPTION 2: Accessing tutorial data from Fondren Library using the gistrain profile

If you are completing this tutorial from a public computer in Fondren Library and are logged on using the gistrain profile, follow the instructions below:

  1. On the Desktop, click the File Explorer icon  located on the Windows Taskbar at the bottom left corner of the screen.
  2. In the 'File Explorer' window, click This PC on left side panel and then navigate to gisdata (\\file-rnas.rice.edu) (R:) > Short_Courses > Introduction_to_GIS  
  3. To create a personal copy of the tutorial data, drag the Intro folder onto the Desktop. 
  4. Close all windows.

(Delete this option?)OPTION 3: Accessing tutorial data online 

If you are completing this tutorial from a personal computer, you will need to download the tutorial data online by following the instructions below:

Tutorial Data Download

  1. Click Intro.zip above to download the tutorial data.
  2. Open the Downloads folder.
  3. Right-click Intro.zip and select Extract All....
  4. In the 'Extract Compressed (Zipped) Folders' window, accept the default location into the Downloads folder.
  5. Uncheck Show extracted files when complete.
  6. Click Extract.
  7. Directly within the Downloads folder, drag the Intro folder onto your Desktop.

 


Getting Started with QGIS

Managing Projects

Creating a New Map

A map is a project item used to display and work with geographic data in two dimensions. The first step to visualizing any data is creating a new map. The ribbon runs horizontally across the top of the ArcGIS Pro interface. Tools (buttons) are organized into tabs along the ribbon.

  1. Open QGIS. 
  2. Click the Open Data Source Manager button in the top left 
  3. On the ribbon, click the Insert tab.
  4. In the Project group, click the New Map button.



    You will notice that a new map view opens in the main section of ArcGIS Pro.

    The panel on the left side of ArcGIS Pro is called the Contents pane. After creating a new map, the Contents pane now displays the default Map title and automatically adds the Topographic basemap layer to the map.

    The panel on the right side of ArcGIS Pro is called the Catalog pane. After creating the first map, a new Maps section has been added to the top of the Project tab within the Catalog pane.

  5. In the Catalog pane, click the arrow to expand the Maps section.



    Notice that there is a single map there, named "Map". Since most projects will have multiple maps, it is a good idea to name your maps with more descriptive titles.

  6. In the Catalog pane, under the Maps section, right-click Map and select Rename.
  7. Type "Super Neighborhoods" and hit Enter.

Saving a Project

Any time you create a new project item, such as a map or a layout, or any time you spend time adjusting the symbology of your map layers, it is a good idea to save your project.

  1. Above the ribbon, on the Quick Access toolbar, click the Save button.

Managing Maps

Browsing Existing Data

As a reminder, in the Intro to GIS Data Management tutorial, we imported the feature classes of interest into our project geodatabase.

  1. In the Catalog pane, click the arrow to expand the Databases section.
  2. Click the arrow to expand the Intro.gdb geodatabase.

Adding Data to a Map

  1. Right-click the Census_2010_By_SuperNeighborhood feature class and select Add To Current Map.
  2. An alternative method of adding data to a map is to click and hold the Major_Roads feature class and drag and drop it into the Super Neighborhoods map view.

Symbolizing Layers with a Single Symbol

When layers are added to a map, ArcGIS Pro assigns then a random color symbol. Sometimes the colors are very faint and difficult to see on top of the basemap or the colors of multiple layers are very similar to each other and difficult to distinguish. To ensure that everyone can easily see the layers we are working with, we will adjust the basic symbology.

  1.   In the Contents pane, right-click the Major_Roads layer name and select Symbology to open the Symbology pane on the right.



    Notice that the 'Primary symbology' defaults to Single Symbol. With this type of symbology, all features in that particular layer will be assigned the same symbol.

  2. For 'Symbol', click the colored line symbol to switch to Format Line Symbol mode.



  3. Within Format Line Symbol mode, click the Properties tab.



  4. For 'Color', use the drop-down menu to select Black.
  5. At the bottom of the Symbology pane, click Apply.

    The freeways on the map should now all be black and easily visible on top of the basemap. The Format Symbol mode of the Symbology tab can be accessed directly via the layer symbol (instead of the layer name) in the Contents pane.

  6. In the Contents pane on the left, click the colored rectangle symbol beneath the Census_2010_By_SuperNeighborhood layer name.



  7. For 'Color', use the drop-down menu to select Mango.



  8. For 'Outline color', use the drop-down menu to select Gray 50%.
  9. At the bottom of the Symbology pane, click Apply.

The super neighborhood polygons are now easy to distinguish from both the basemap and the freeways. In addition, the borders of the super neighborhoods are clear and easy to differentiate from the freeways.

Navigating the Project

Navigating the Contents Pane

At the top of the Contents pane, there is a series of seven buttons. By default, the leftmost button is selected: List by Drawing Order.

When this button is selected, the order in which the layers are listed corresponds to the order in which the layers are visually stacked in the Map view. To test how the drawing order works, you will reorder the layers.

  1. In the Contents pane, click and hold the Census_2010_By_SuperNeighborhood layer name and drag and drop it above the Major_Roads layer.

    You will notice that, in the Map view, the Census_2010_By_SuperNeighborhood layer is now drawn in on top of the Major_Roads layer, meaning that freeways are only visible in areas not covered by a super neighborhood. It is possible to add transparency to the super neighborhood layer or to symbolize it with a bold outline and a hollow fill, but, in general, it is best to have polygon layers at the bottom of the drawing order, so we will return the layers to their previous order.

  2. In the Contents pane, click and hold the Census_2010_By_SuperNeighborhood layer name and drag and drop it beneath the Major_Roads layer, but above the Topographic basemap.

    The check boxes to the left of each layer name toggle the visibility of each layer.

    Because the basemap is a solid image, any layers beneath it will not be shown at all, so ensure the basemap is always at the bottom of the layers in the Content pane.

  3. Uncheck the Major_Roads layer to turn off its visibility in the map view.
  4. Check the Major_Roads layer to turn its visibility back on in the map view.

Navigating the Map View

You will now learn how to navigate the Map view by panning, zooming, and using spatial bookmarks.

  1. On the ribbon, click the Map tab.
  2. In the Navigate group, ensure that the Explore button is selected by default.



    To pan the map:

  3. Within the map view, click and hold the left mouse button and drag the mouse and release.

    To manually zoom:

  4. Hover your cursor over the area you wish to zoom in to and push the center scroll wheel away from you for incremental zooming. Pull the center scroll wheel towards you to zoom out.

    -OR-

  5. Hover your cursor over the area you wish to zoom in tohold down the right mouse button, and drag the mouse down for smooth zooming. Drag the mouse up to zoom out.

    -OR-

  6. Hold down Shift such that your cursor changes to a magnifying glass and then click and hold and drag a box around the targeted area of interest to zoom directly to a specific extent.

    To zoom to the extent of a particular layer:

  7. In the Contents pane, right-click the Census_2010_By_SuperNeighborhood layer name and select Zoom To Layer.

    A spatial bookmark allows you to quickly return to a particular zoom extent in your Map view.

  8. On the Map tab, in the the Navigate group, click the Bookmarks button and select New Bookmark....



  9. In the 'Create Bookmark' window, for 'Name:', type "Houston" and click OK.
  10. To test the bookmark, use panning and zooming to change the extent of the map.
  11. Again, click the Bookmarks button and this time select the Houston bookmark to return to that extent.

Exploring Data in the Map View

Selecting Features Manually

Selecting Features Manually from the Map View

  1. On the Map tab, in the Selection group, click the Select button.



  2. In the map view, click on any neighborhood to select it.

    The selected neighborhood will be outlined in cyan.

  3. Drag a box to select multiple adjacent neighborhoods.
  4. Hold down Shift and click any non-selected neighborhood to add additional non-adjacent neighborhoods to the selection.
  5. Hold down Ctrl and click any selected neighborhood to deselect neighborhoods.

    When you are finished using a selection, it is important to clear the selected features, because the majority of tools in ArcGIS Pro only run on selected features. Therefore, if you run a tool anticipating that you will be processing all features in a particular layer and you inadvertently left some features selected from a previous process, only those selected features will be processed, which will lead to unexpected results.

  6. On the the Map tab, in the Selection group, click the Clear button to clear the selected features.



    Notice that the Clear button becomes grayed out once all features are cleared. On the Map tab, notice that the Select button is still activated, which means that if you now attempted to pan the map by clicking and dragging your left mouse button across the map, you would, instead, select numerous features on your map inadvertently. To prevent this, it is a good idea to reactivate the Explore button as soon as you are finished using manual selection.

  7. On the Map tab, in the Navigate group, click the Explore button.

Selecting Features Manually from the Table View

  1. In the Contents pane, right-click the Census_2010_By_SuperNeighborhood layer name and select Attribute Table.

    A table view now appears docked beneath your map view. Each row, or record, in your table corresponds to exactly one super neighborhood polygon on the map. Each column, or field, in your table represents a variable describing the super neighborhoods.

    Every geodatabase feature class has two to four default fields, which cannot be edited or deleted. The leftmost OBJECTID field is a unique ID that is automatically numbered from 1 to the total number of features at the time of creation. In this particular case, the field is called OBJECTID_1, because there was a preexisting OBJECTID field at the time this data was imported to geodatabase format by the City of Houston. The Shape field indicates whether the feature geometry contains points, lines, or polygons.

  2. In the table view, use the scroll bar at the bottom to scroll to the far right of the table.

    The other two default fields are the last Shape_Length and Shape_Area fields which contain the perimeter and area of the super neighborhoods, respectively. A line feature class will only contain the Shape_Length field and a point feature class will not contain either field. The units of these fields correspond to the units of the projection in which the data coordinates are stored.

  3. In the Contents pane on the left, double-click the Census_2010_By_SuperNeighborhood layer name.
  4. In the 'Layer Properties' window, in the left column, click the third Source tab.
  5. At the bottom of the window, click to expand the Spatial Reference section.
  6. Use the scroll bar on the right to scroll to the bottom of the metadata.

    Within the Spatial Reference section, notice that the geographic coordinate system is WGS 1984 and that no projected coordinate system is listed. Therefore, the layer is unprojected, meaning the data coordinates are located on the three-dimensional surface of the globe and you can see the Angular Unit is listed as Degrees (or decimal degrees.) Therefore, the Shape_Length field is displaying decimal degrees and the Shape_Area field is displaying square decimal degrees, which is why the numbers are so low. Before measuring distance or area, the data layer should be projected onto a two-dimensional surface. The resulting projection will have a Linear Unit, such as feet or meters. The process of projecting is further covered in the Introduction to Coordinate Systems and Projections course.

    As indicated by the layer name, the majority of the remaining fields contain 2010 census data that was aggregated to the super neighborhood level by the City of Houston, since that is not a geographic unit at which the Census Bureau provides data.

  7. Double-click the 'Name' field header to sort the neighborhoods alphabetically.
  8. To select a neighborhood from the table, click the gray square to the far left of each row.
  9. To select an adjacent section of records, hold down Shift and select a record below or above the currently selected record to automatically select all records in between.
  10. To add or remove individual records from the selection, hold down Ctrl and select another record.

    Notice in the bottom left corner of the Census_2010_By_SuperNeighborhood attribute table, it indicates the number out of 88 table records (and corresponding map features) that are currently selected.



    The two buttons to the left allow you to toggle between 'Show all records' and 'Show selected records'.



    Note that if 'Show selected records' is active and no records are currently selected, the table view will appear empty. Toggle back to 'Show all records' to view the table.

  11. At the top of the Census_2010_By_SuperNeighbrhood table view, click the Clear button.



  12. Close the attribute table.

Symbolizing Layers By Attributes

Symbolizing Layers By Quantity

  1. In the Contents pane, right-click the Census_2010_By_SuperNeighborhood layer name and select Symbology.
  2. Use the primary 'Symbology' drop-down menu to select Graduated Colors.
  3. Use the 'Field' drop-down menu to scroll down sixth from the bottom and select the SUM_Vacant field. This field stores the number of vacant housing units within each neighborhood.

    The map view now displays a choropleth map, where the darker colors represent higher numbers of vacant housing units. In studying the map, it appears as if the most vacant housing is in southwest Houston outside the Loop. While this is true according to raw counts per neighborhood, there could be differences in the neighborhoods that are unaccounted for in this symbology. Now you will try normalizing by the area of the neighborhood.

  4. Use the 'Normalization' drop-down menu to scroll to the bottom and select the last Shape_Area field.

    As discussed in the Introduction to GIS Data Management course, the projection of the census layer is WGS 1984. Therefore, the layer is unprojected and the coordinates are stored in angular units of decimal degrees. Therefore, the Shape_Area field is displaying square decimal degrees and the map is displaying number of vacant housing units per square decimal degree. This is a somewhat incomprehensible unit, however, the values are still proportional to how they would be in a different unit and the relative coloring on the map remains correct. Notice that according to the density of vacant housing units, the greatest amount of vacant housing units appear to be both inside and outside the loop along 59.

  5. Use the 'Normalization' drop-down menu to select the SUM_HU100 field.

    The map is now displaying the number of vacant housing units divided by the total number of housing units, or the percent vacant housing units. While both methods of symbolizing the vacant housing units are technically correct, this is probably the most common method.

  6. On the lower half of the Symbology pane, click the Histogram tab.


  7. Use the 'Method" drop-down menu to select Equal Interval.

    Notice how the map changes. Equal Interval divides the range of attribute values into equal-sized subranges.

  8. Use the 'Method" drop-down menu to select Quantile.

    Again, the display of data on the map changes. Quantile assigns the same number of data values to each class.

  9. Use the 'Classes' drop-down menu to select 20.
  10. Use the 'Classes' drop-down menu to select 4.

    Observe how changing the number of classes alters the display. 

  11. Use the 'Color Scheme' drop-down menu to select a different color scheme of your choice.

Adding Layer Transparency

  1. Ensure that the Census_2010_By_SuperNeighborhood layer is selected.
  2. In the ribbon, click the Feature Layer contextual Appearance tab.
  3. In the Effects group, slide the Layer Transparency slider or type "50" and hit Enter.
  4. Return the Layer Transparency slider to "0".

Symbolizing Layers By Category

  1. Use the primary 'Symbology' drop-down menu to select Unique Values.
  2. Use the 'Field 1' drop-down menu to select Name.
  3. In the Contents pane, collapse the Census_2010_By_Superneighborhood symbology.

Selecting Features Programatically

Selecting Features By Attributes

  1. In the ribbon, click the Map tab.
  2. In the Selection group, click the Select By Attributes button to open the Select Layer By Attribute tool in the Geoprocessing pane.



  3. In the Geoprocessing pane, click the Add Clause button.
  4. Use the drop-down menus to build the following expression: Name is Equal to 'UNIVERSITY PLACE' and click the Add button.
  5. Click Run.

Exporting Selected Features

  1. In the Contents pane, right-click the Census_2010_By_SuperNeighborhood layer name and select Data > Export Features.
  2. In the Geoprocessing pane, click the 'Output Feature Class' field to edit the name. Replace Census_2010_By_SuperNeighbor with "MyNeighborhood". Ensure that you leave everything in the file path through Intro.gdb\.

Selecting Features By Location

Now we will create a map of the bus stops and bus routes within your neighborhood. We could continue to do our mapping within the existing map, but, since we are now focusing on different thematic layers in a different geographic extent, this could be a good time to create a second map within our project.

  1. On the ribbon, click the Insert tab.
  2. In the Project group, click the New Map button.
  3. At the bottom of the Geoprocessing pane, click the Catalog pane tab. 
  4. Rename the map My Neighborhood and add MyNeighborhoodBusStops and BusRoutes.
  5. In the Selection group, click the Select By Location button to open the Select Layer By Location tool in the Geoprocessing pane. 
  6. Select BusStops for the 'Input Feature Layer'. Select Within a distance for the 'Relationship'. Select MyNeighborhood for the 'Selecting Features'. Type '50' for the 'Search Distance'. Ensure the 'Selection type' is 'New selection'. Ensure your panel looks like the one below and click Run



  7. Do not clear the selection. Repeat Step 6, searching for bus routes within 100 ft of a bus stop in your neighborhood. Select BusRoutes for the 'Input Feature Layer'. Select Within a distance for the 'Relationship'. Select BusStops for the 'Selecting Features'. Type '100' for the 'Search Distance'. Ensure the 'Selection type' is 'Add to the current selection'. Ensure your panel looks like the one below and click Run


    Your map should now have selected all bus stops within 50 feet of your neighborhood as well as all bus routes that run within 100ft of those bus stops. 

  8. In the Contents pane, right-click the BusStops layer name and select Data > Export Features.
  9. In the Geoprocessing pane, click the 'Output Feature Class' field to edit the name. Replace BusStops with "MyBusStops". Ensure that you leave everything in the file path through Intro.gdb\.
  10. In the Contents pane, right-click the BusRoutes layer name and select Data > Export Features.
  11. In the Geoprocessing pane, click the 'Output Feature Class' field to edit the name. Replace BusRoutes with "MyBusRoutes". Ensure that you leave everything in the file path through Intro.gdb\.
  12. In the Contents pane, right-click and remove BusStops and BusRoutes. You should now have three layers in your Contents pane, UniversityPlaceMyBusStops, and MyBusRoutes

Presenting and Sharing Maps

Creating a Layout

Once you are finished with your analysis, you may want to create a map that is suitable for adding to a report, presentation, or sharing with others who don't have access to ArcGIS software.

  1. On the ribbon, click the Insert tab.
  2. Click the New Layout button.
  3. If you wanted to create a custom image size for insertion into a report or presentation, you could select Custom page size at the bottom of the options, but for a full page layout, select Letter 8.5" x 11" at the top left of the options.

More tips for creating a layout are covered in the Map Layouts for Publication short course.

Exporting a Layout

  1. On the ribbon, click the Share tab.
  2. Click the Export Layout button.
  3. On the left, click the Desktop folder.
  4. Double-click the Intro folder.
  5. For 'Resolution (DPI)', type "300".
  6. Click Export.

To continue learning intermediate topics, refer to the courses in the other ArcGIS Pro Series.

  • No labels