Lab 08 - Introduction to network analyist and ArcScene

Part 1: Network Analysis

Objectives The part of the lab is designed to introduce some basic networking analyses, including how to setup a network dataset, how to find the efficient routes under different rules, and how to calculate the nearest facilities.

Materials

Data Name Description
SanFranciscoTran.gdb Various transportation and government data about San Francisco
Restricted Turns.lyr Pre-defined layer of restricted turns along network

1. Create a new network dataset

There are quite a few steps here where you can make a wrong turn (ba dum tss). Read and follow them carefully, and take the time to read each window in Arcmap and think about what the different options might produce.

  • Create a new data frame or start a new map document. Click Customize and select Extensions. Make sure the box next to Network Analyst is checked. Click Close.
  • Click Customize, select Toolbars, and click Network Analyst.
  • Click the ArcCatalog button (looks like a little filing cabinet). Locate your Part1 folder in the Catalog Tree of the ArcCatalog window. Expand the folder (i.e., click the plus sign next to it) and expand the SanFranciscoTrans geodatabase. Right-click the Transportation feature dataset, select New, and click Network Dataset.
    • Name the network dataset Streets_ND and then click Next. Click Next three more times.
  • Under the Field column in the Using Elevation Fields section, click F_ELEV and change it to T_ELEV. Click Next. Click Next again.
  • On the “Specify the attributes for the network dataset” page, click the Add button. Name the attribute RestrictedTurns, change the Usage Type to Restriction, and then click OK.
  • Click the row you just created and then click Evaluators.
  • Under the Type column, change RestrictedTurns to Constant and change the Value column to Use Restriction. Click OK.
  • Click Next through the rest of the prompts and then click Finish.
  • Click Yes on the window that pops up. Give it a minute to run.
  • Click Close on the errors window that pops up.
  • Click Yes to add the network layer to the map
  • The resulting map should look like a chaotic mess of streets, junctions, signposts, etc.—but that’s OK for now.
  • Right-click the RestrictedTurns layer and select Properties. Click the Symbology tab. Click Import. Click the little folder icon, select the file Restricted Turns.lyr in your Part1 folder, and click Add. Click OK. Click OK again.
  • Click the down arrow next to the Add Data button and select Add Basemap. Click Streets and then click Add. Give it a minute to load and say Yes if the program asks about hardware acceleration.

2 Find the best route

  • Click the Network Analyst button on the Network Analyst toolbar and select New Route.
  • Turn off all layers except Route, Streets_ND, and Basemap. Zoom in close to downtown San Fran (the northeast tip of the peninsula). Notice how the colors indicate varying amounts of traffic.
  • Take a screenshot of your entire screen and save it to your personal folder (that should look like this).
  • We are now going to find the best route for a hypothetical shopping trip. Click the Find button (looks like a pair of binoculars). Click the Locations tab and Enter in the Single Line Input field:
    • 301 Post St., San Francisco, CA 94108
  • Click Find. Right-click the first result listed and select Add as Network Analysis Object.
  • Repeat the last two steps for the following addresses:
    • 1405 Montgomery St., San Francisco, CA 94111
    • 39 Pier 39 Concourse, San Francisco, CA 94133
    • 3301 Lyon St., San Francisco, CA 94123
    • 301 Post St., San Francisco, CA 94108 (…in order to make it a round trip!)
  • Close the Find window.
  • Double-click Route in the Table of Contents and in the Analysis Settings tab. Check the box next to Use Start Time. Change the Time of Day to 09:00 and the Day of Week to Monday. Click OK.
  • Click the Solve button (looks like a grid with a line through it) on the Network Analyst toolbar. Click the Directions button (right next to the Solve button). Scroll down to the bottom of the window. It should list the time and distance of the trip. Move the Directions window so that it and the route are both visible. Take a screenshot of your entire screen and save it to your personal folder (this should look like so).

Part 2: 3D in GIS

Objectives This part of the lab will introduce you to the ArcScene environment of the 3D Analyst extension. First you will drape an image of Death Valley in ArcScene, and then you will explore the population of Douglas County using three dimensional symbology and Google Earth imagery.

From Esri’s ArcGIS Resource Center: “ArcScene is a 3D viewer that is well suited to generating perspective scenes that allow you to navigate and interact with your 3D feature and raster data. Based on OpenGL, ArcScene supports complex 3D line symbology and texture mapping as well as surface creation and display of TINs. All data is loaded into memory, which allows for relatively fast navigation, pan, and zoom functionality. Vector features are rendered as vectors, and raster data is either downsampled or configured into a fixed number of rows/columns you set.”

Data Name Description
DVIM3.tif Spaceborne radar imagery over Death Valley
dvtin Triangulated Irregular Network (TIN) terrain model for portion of Death Valley
Death Valley Terrain.lyr Layer file of Death Valley, for display purpose only
Dougctyblks.shp Douglas county census block layer

1 Draping an Image in ArcScene

  • Open ArcScene. Give it a minute to load. Click Cancel on the window that pops up.

  • As you would in ArcMap, add the Death Valley Terrain.lyr from your Part2 folder. Also add DVIM3.TIF, The image is drawn on a plane with a base elevation of zero. Turn off the Death Valley Terrain layer.

  • Right-click DVIM3.TIF and select Properties. In the Base Heights tab, click the Floating on a custom surface: radio button. Because the dvtin TIN (from which the layer file was created) is the only surface model in the scene, it appears in the dropdown list. Click OK and observe what happens to the image.

  • Draping the radar image over the terrain surface allows you to see the relationship between the general shape of the land surface and the texture of the rocks and sediment that make up the surface.

  • Explore the image using the 3D tools

  • Right-click Scene layers (similar to ArcMap’s data frame) and select Scene Properties. Under the General tab, change the Vertical Exaggeration to 2. Click OK. Notice that the apparent height of the terrain is now doubled.

  • Click the familiar Full Extent button. Click the Set Observer button (it looks like a target with an eye in front of it). This tool allows you to click on a portion of the image to observe the landscape from that point of view. Use this tool to explore the different 3D views. (Beware that clicking on flat spots will point your view to the sky! If that happens, just click the Full Extent button.)

  • Select a view that you find particularly interesting. Take a screenshot of your entire screen and save it to your personal folder.

  • Save your 3D ArcScene document to your Part2 folder as deathvalley.sxd.

2 Displaying attribute values in 3D

  • Start a new ArcScene document. Add dougctyblks.shp from your Part2 folder.

Let’s set the color symbology to reflect population values.

  • Open the Properties of the dougctyblks layer and click the Symbology tab. Click Quantities and select pop2k as your Value field. Increase the number of classes to 10. Click Apply.

Now we will use extrusion to represent population. (According to Esri, extrusion is “the process of stretching a flat 2D shape vertically to create a 3D object.”)

  • Click the Extrusion tab. Check the box to Extrude features in layer and then click on the adorable little calculator. The expression we wish to use here is simply [pop2k], so just double-click pop2k in the Fields box and then click OK. Click the Apply extrusion by: dropdown menu and select adding it to each feature’s base height. Click OK.
  • You should see the extrusions. Since we’ve used the same variable for color and extrusion height, this means the darker the color, the taller the extrusion.

Finally, we will make the layer translucent and load it into Google Earth. Open the Properties of the dougctyblks layer and click the Display tab. Set the transparency to 50%. Click OK.

  • Open ArcToolbox and go to Conversion Tools>To KML>Layer to KML. Use the dropdown menu (not the little folder) to select dougctyblks as the input layer. Save the output as dougpop.kmz in your Part2 folder. Set your Layer Output Scale to 1. Click OK. Give the tool a minute to work.
  • Save your 3D ArcScene document to your Part2 folder as dougpop.sxd.
  • Close ArcScene. In Windows Explorer, navigate to your Part2 folder and then double-click your dougpop.kmz file.
  • Open it in Google Earth
  • Pan, zoom, and tilt in order to get a good look at the extruded layer.
  • Settle a cool view. Use save image, add the pieces and save it to your personal folder.

Part 3: Terrain Analysis

Objectives This section will introduce you to basic terrain analysis in the raster data model. You will learn how to: 1 Create contours, profiles, and hillshades 2 Derive slope and aspect 3 Generate a viewshed

Materials

Data Name Description
dem30 USGS 7.5 minute DEM of Watauga County, North Carolina (cell size 30m)
flattop.shp A vista platform (data collected using Trimble GPS)
trail.shp flattop trail (data collected using Trimble GPS)

1 Generate contours

  • Open ArcMap. Click Customize and select Extensions. Makes sure the Spatial Analyst extension is checked.
  • Add DEM30 and TRAIL.shp from your Part3 folder.
  • In ArcToolbox, go to Spatial Analyst Tools | Surface | Contour and use the following settings:
    • Input raster: DEM30 (select from the dropdown list)
    • Output polyline features: (Save as contour in your Part02 folder)
    • Counter interval: 20
    • Base contour: 400 Click OK.
  • Right-click the contour layer and select Label Features.
  • Drag the TRAIL layer to the top of the Table of Contents. Make the trail line thicker so that it’s easier to see. Right-click the layer and select Zoom To Layer. Look at the trail. Click Fixed Zoom Out a few times and look at the trail again.

2 Create hillshades and derive slope and aspect

  • Turn off the contour layer and click Full Extent.
  • In ArcToolbox, go to Spatial Analyst Tools | Surface | Hillshade. The input layer should be DEM30. Leave all the settings as their defaults and create an output file named hillshade in your Part3 folder.
  • Repeat the last step but set the Z factor to 3 and save it as hillshade3z.
  • Turn this new hillshade on and off to see the difference between it and the original.
  • Create another hillshade and set Altitude to 60, the Z factor to 3, and save it as hillshade3z60.
  • Turn this new hillshade on and off to see the difference between it and the original.
  • Turn off all the hillshades.
  • In ArcToolbox, go to Spatial Analyst Tools | Surface | Slope.
    • Select DEM30 (from the drop-down menu) as the Input raster.
    • Save the Output raster as slope. Click OK.
  • In ArcToolbox, go to Spatial Analyst Tools | Surface | Aspect. Select DEM30 (from the drop-down menu) as the Input raster. Save the Output raster as aspect. Click OK.
  • Spend a moment looking at your slope and aspect rasters.
  • Turn off the slope and aspect layers.

3 Create trail profile

  • Click Customize and select Extensions. Make sure 3D Analyst is checked.
  • Click Customize, select Toolbars, and select 3D Analyst.
  • Right-click TRAIL and select Zoom to Layer.
  • On the 3D Analyst toolbar, make sure your Layer is set to DEM30. Click the Interpolate Line button.
  • Now you will trace the trail to digitize a line. Simply click once to start and then click again along the path to create vertices. There’s no need to be ultra-precise. Double-click once you have completed the line.
  • On the 3D Analyst toolbar, click the Profile Graph tool and select Profile Graph. (The line must be selected for this to work.)
  • Right-click on the title bar of the profile graph and select Properties. In the Appearance tab, change the Title to Trail Elevation Profile and the Footer to your name. Click Apply and OK.
  • Take a screenshot of the entire screen and save it to your personal folder.
  • Close the Profile Graph.

4 Create a line-of-sight

  • On the 3D Analyst toolbar, click the Create Line of Sight button.
  • In the dialog box that appears, type 1.7 as the Observer offset. (This will show what is visible from the perspective of an observer 1.7 meters [5’7”] tall.) Leave the Target offset as it is. Keep the dialog box open.
  • Zoom into an area of your choosing. Draw some lines by clicking once at a start point and clicking once at an end point.
    • The green segments of the line are visible from the observer point,
    • The red segments are not
    • The blue dot represents the “point of obstruction from the observer to the target.”
  • Close the line-of-sight dialog box.
  • Select the lines-of-sight you created and delete them.

5 Create flattop viewshed

  • Add the FLATTOP.shp from your Part02 folder.
  • Open the layer’s attribute table. Add two new fields, OFFSETA and RADIUS2, both with a Type of Float, a Precision of 8, and a scale of 2.
    • Hint: Start with the Table Options button!
  • Start an edit session.
    • Remember this? Hint: Open the Editor toolbar.
  • In the attribute table of FLATTOP, enter 22.05 in the OFFSETA field and 8045 in the RADIUS2 field. Save your edits and end the edit session.
  • In ArcToolbox, go to Spatial Analyst Tools | Surface | Viewshed. Use DEM30 as the Input raster, FLATTOP as the Input point, and save the output as viewshed in your Part02 folder.
  • Click Full Extent to see your viewshed. Look at the Table of Contents to see which color corresponds to the visible sections.
  • Take a screenshot of the entire screen and save it to your personal folder.

Lab submission:

You should submit your 5 screenshots to blackboard. Congratulations, you are finished.