Exercise 2: Accessing the extension and exploring the data

Complexity: Beginner Data Requirement: ArcGIS Tutorial Data for Desktop

You will learn how to enable theArcGIS Spatial Analyst extension, access the Spatial Analyst toolbar, and search for geoprocessing tools. You will create a hillshade output to display transparently with your other layers, make a histogram of your land-use layer, and select elements on your map. This exercise will take approximately 15 minutes to complete.

Checking out an ArcGIS Spatial Analyst extension license

Steps:
  1. Click the Customize > Extensions menu.
    Extensions
  2. Check the Spatial Analyst check box.
  3. Click Close.
    Enabling the extension

Add the Spatial Analyst Toolbar

The Spatial Analyst toolbar contains a Create Contour tool Create Contour and a Histogram button Histogram.

Steps:
  1. Click Customize > Toolbars > Spatial Analyst on the main menu.
    Spatial Analyst toolbar

    The Spatial Analyst toolbar is added to your ArcMap session.

Creating a hillshade

A hillshade is a shaded relief raster created by using an elevation raster and setting an illumination source (typically the sun) at a user-specified azimuth (the angular direction of the illumination source, in positive degrees from 0 to 360) and altitude (the angle of the illumination source above the horizon). The visual effect of a hillshade can be dramatic when it is displayed under other layers with transparency set in your ArcMap display. You'll run the Hillshade tool so you can view and explore the output from this tool with the rest of your input data later in this exercise.

Steps:
  1. Open the Hillshade tool.

    NoteNote:

    These substeps show how to use the Search window to locate the Hillshade tool.

    1. Click Search Search.
    2. Click Tools.
    3. Type Hillshade.
    4. Click the Search button Search, or click Enter.
    5. Click the Hillshade (Spatial Analyst) tool from the Spatial Analyst toolbox, not the 3D Analyst toolbox.

    Search for the Spatial Analyst Hillshade tool
  2. Select elevation from the drop-down list for the Input raster.
  3. Leave the default for the Output raster, Azimuth, and Altitudeparameters.
  4. Accept the default and leave Model shadows unchecked, so the local illumination of the surface will be calculated whether or not a cell falls in the shadow of another cell.
  5. Type a value of 0.3048 for the Z factor.

    The x,y units in this elevation data are in meters, and the z-values (the elevation values) are in feet. Since there are 0.3048 meters in one foot, multiplying the z-values by a factor of 0.3048 will convert them to meters.

    Hillshade tool parameters

    Dive-inDive-in:

    If your x-, y-, and z-values are all in the same unit of measure (for example, if they are all in meters), you can accept the default Z factor of 1, so the z-units are not converted. Setting an appropriate z-factor is critical for good results if your input surface is stored in a geographic coordinate system (for example, the x,y units are a spherical measurement, such as decimal degrees or decimal seconds). The z-factor can also be used for exaggeration of the terrain.

  6. Click OK to run the tool.

Displaying and exploring data

You will now explore the display capabilities of ArcMap by changing the symbology of one of the layers and applying transparency so you can see the hillshade output you have created underneath your other layers in the display.

Steps:
  1. In the table of contents, click and drag the hillshade result below the landuse layer.
  2. Uncheck the elevation layer in the table of contents.
  3. Right-click landuse in the table of contents and click Properties.
    Open properties for the landuse layer
  4. Click the Symbology tab.

    All land-use categories are currently drawn in random colors with the Unique Values renderer, based on the Value Field. You will change the Value Field setting to be more meaningful and change the symbology to show a more appropriate color for each land-use type on the map.

  5. Click the Value Field drop-down arrow and click LANDUSE. This is a string field in the landuse attribute table that describes each land-use type.
  6. Double-click each symbol and choose a suitable color to represent each land-use type (for example, agriculture is orange; built up areas, red; forest, green; water, blue; and wetlands, purple).
  7. Click Apply.
    Set symbology on the landuse layer

    The changes you make are reflected in the table of contents and in the map display.

  8. Click the Display tab.
  9. Change the Transparency from 0% to 30%.
  10. Click OK.
    Display transparency

    The hillshade layer can now be seen underneath the landuse layer, giving a vivid impression of the terrain.

    Land use and hillshade map
    Land use and hillshade map

Select features on the map

Examining the attribute table gives you an idea of the number of cells of each attribute in the dataset.

Steps:
  1. Right-click the landuse layer in the table of contents and click Open Attribute Table.
    Open attribute table

    The COUNT field identifies the number of cells in the dataset of each value. Notice that Forest (value of 6) has the largest count, followed by Agriculture (value of 5), then Water (value of 2).

  2. Click the row representing Wetlands (value of 7).

    This selected set, all areas where the land-use type is Wetlands, is highlighted on the map.

  3. Click the Unselect all the currently selected records button Clear Selection in the menu of the Table window.
  4. Click the attribute table for landuse layer and the Table window.
    Select a row in the attribute table

Identifying features on the map

Steps:
  1. Click the Identify tool Identify on the Tools toolbar and click any location on your map.
    Identify tool
  2. Click the Identify from drop-down arrow on the Identify dialog box and click <All layers>.
  3. Click a rec_site point to identify the features in this particular location.
    NoteNote:

    Your display will not be zoomed in this much; this is only to show the location of the recreation site to click.

  4. Close the Identify window.
    Use identify tool

Examining a histogram

Steps:
  1. On the Spatial Analyst toolbar, click the Layer drop-down arrow and click landuse.
  2. Click the Histogram button Histogram.
    Spatial Analyst toolbar

    The histogram displays the number of cells of each type of land use.

  3. Close the Histogram of landuse window.
    Histogram of landuse

Saving the map document

As the last step in this exercise, you'll save the changes to your map document. You'll use this map document in the next exercise.

Steps:
  1. On the Standard toolbar, click the Save button Save.
    Save on the Standard toolbar

Summary

In this exercise, you explored the tutorial data and learned how to access and run Spatial Analyst tools. In the next exercise, you will build a model by adding tools from the Spatial Analyst Tools toolbox to ModelBuilder to run a sequence of tools that will locate the areas that are suitable for building a new school.

You can proceed to exercise 3 or stop and complete the tutorial at a later time. If you do not proceed to exercise 3 now, do not delete your working copy of the tutorial data.

Related Topics

3/7/2014