Introduction to Geographic Information Systems in Forest Resources
UW Home GIS@UW Search
Syllabus Schedule Class Meetings Assignments Course Data Internet Search

Current Grades

Contact Us CFR 590 Internet-only section Lab Locations  


Exercise: Creating Feature Themes

Objectives:


  1. Start ArcView and open an existing project
  2. Query a theme to select a subset of features
  3. Convert the selected set of features to a shapefile
  4. Create (digitize) a new polygon theme and modify its legend
  5. Set the snapping environment
  6. Add features and attributes to the new theme
  7. Edit features with Split and Union
  8. Stop editing and save your edits
  9. Create a new point theme
  10. Create a new line theme
  11. Create a stands polygon theme
  12. Close the project


Start ArcView and open an existing project

  1. Retrieve the project create_f_theme.apr. Save it in your personal directory.

  2. If ArcView is not running start the ArcView application.

  3. Use the Startup Project to open the project file you just downloaded. When the create_f_theme.apr project opens, you will see a view containing two themes.

 

 


Query a theme to select a subset of features

Forest thinning operations typically occur early in the life cycle of a forest stand. In this exercise, create a shape file from the stands (ArcInfo coverage) theme, consisting only of stands between the ages of 15 and 30.

  1. Click the Query Builder button (), which opens the Query Builder dialog.

  2. In the Query Builder dialog, select Age_2003 from the Fields list by double-clicking on its name.

  3. Single-click on the greater-than button (), and type in the number 15.

  4. Single-click the and button ().

  5. Double-click the Age_2003 field.

  6. Single-click on the less-than button (), and enter the number 30.

  7. Click the New Set button, and dismiss the Query Builder dialog.

  8. The query should look exactly like this, with parentheses and braces in the correct positions. If you make a mistake, highlight the query and press the <DELETE> key, then start over. Make sure you have proper opening and closing parentheses around all terms, especially if you have manually edited the expression.




    The view will look like this, with stands meeting this age criteria displayed in the selection color of yellow:

 

You have just selected a set of features from a polygon theme. You will use this set of features in the next step to create a new theme composed of only these features.

 


Convert the selected set of features to a shapefile

  1. To convert this selected set into a shapefile, simply select Theme > Convert to Shapefile from the menu. Name the new shapefile stands1530. Make sure that the new shapefile is placed in the file system where you want it to be stored.



  2. Click Yes when asked to add the shapefile to the view.



  3. Turn off the original stands theme. Your view should appear like this:



  4. The new theme is composed of only polygons matching the query criteria.

  5. Close the Stands view.

 

You have just taken a set of selected features and created a new shapefile composed of only those features. Use this technique whenever you want to create a subset of features from a theme. Sometimes you need a smaller data set for a specific spatial area, or a set of features that has a specific attribute value.

 


Create (digitize) a new theme and modify its legend

Next, create a new theme that will represent four different culvert management units. Each management unit will be used to schedule routine annual inspection and maintenance of culverts on the forest.

  1. Open the Culverts view.

  2. Create a new theme by selecting View > New Theme from the menu.

  3. Choose Polygon as the Feature type, and save the new theme as culv_inv.shp in your personal directory.




    The new theme will be added to the view, assigned a random color, and opened for editing. Also note the dashed line around the checkbox for the theme in the Table of Contents. The dashed line indicates that the theme is open for editing.

    Before adding any features, change the theme's legend by double-clicking the theme name in the Table of Contents.

  4. Click on the Color Palette button , and with the dropdown list, make sure Foreground is selected.



  5. Click the "X" symbol, which will cause the polygons not to be filled. (If the color does not change, click the white symbol first, then the "X" symbol).

  6. Next, select Outline from the dropdown, and select the red symbol.

  7. Finally, click the Fill Palette button , and in the Outline dropdown list, select 2.




    Now new polygon features will be displayed with no fill, and a thick red outline. This way the polygon fill will not obscure the underlying data, but the red outline will clearly show the position and shape of the polygons.

 

You have just created a new (empty) polygon shapefile. The legend was also changed to a transparent symbol so that you can see underlying features.

 


Set the snapping environment

To assure that new polygon features are added correctly, alter the snapping environment.

  1. First, right-click-and-hold the mouse button on the map display of the view and select Enable General Snapping from the popup menu.



  2. Click the General Snap tool .

  3. Place the cursor on the view, then click and drag a circle that will be the snapping distance. When new features are added to existing features, and the new features' arcs terminate within this distance of the existing features, the new features will snap to the existing features.




    Make sure that your snapping tolerances are set whenever you are digitizing polygons and lines. You can check the snapping tolerances by looking at Theme > Properties > Editing from the menu.


    Note: If you save a project while a theme or table is open for editing, ArcView will ask you if you want to save changes. Once the project is saved, any themes or tables that were open for editing will no longer be in edit mode. In order to edit the table or theme, you will need to use the Start Editing menu choice from the Theme or Table menus.

 

Setting the snapping tolerances is important to set before you start editing line or polygon features. You can always reset snapping tolerances at any time, based on the precision you need.

 


Add features and attributes to the new theme

  1. Before adding polygons, place a new attribute field in the theme table. With the new theme active, open its theme table using the Theme Table button .

  2. From the menu, select Edit > Add Field.

  3. In the dialog box, add the parameters for the new field as shown:




    Accept the "?" dialog generated by ArcView. A new field is created with a truncated name, but the field alias will be set to display properly.



  4. Now the theme table has a new attribute, but still no records exist. When polygons are added to the theme, records will automatically be generated for each polygon feature. Never add a record to a theme table by directly editing the table. Records should be added only by adding a feature in the view.



  5. Position the view and the table so that they are both visible and not overlapping, because you will work with both documents switching back and forth. Maximizing the application window will make things easier. When a polygon is added, you will subsequently update the record for that polygon.

  6. Use the Polygon tool to add the first polygon. The polygon tool is part of the composite draw tools. If you do not see this tool, view the draw tools dropdown by click-and-holding the Rectangle tool . You will not see any polygons in the theme until you add them.

    Click at the starting point of the polygon, and then click at each new vertex in the polygon outline. When the polygon has the shape you want, double-click to end the polygon. Make sure that the outer edges of the new polygons go completely outside the Pack Forest boundary; we will clip the management units later to match the forest boundary.

    After the polygon feature is added, you will see selection handles around it. If the polygon is incorrect, press the <DELETE> key to remove it. To select a feature while in edit mode, use the Pointer tool and click on the feature.



  7. Next, make the table active, and select the Edit tool .

  8. Click in the Inspection_Season cell for the selected record and type Summer.



  9. Now add the next polygon by using the AutoComplete tool . Please look carefully at these tool icons, because some of them look very similar to each other.

  10. Add a new adjacent polygon by making the first click well within the existing polygon, then move outside the existing polygon, adding vertices as needed.

    To finish the new adjacent polygon, double-click again within the first polygon.

    Make sure to finish the new auto-completed polygon by going back inside the first polygon to a distance beyond the snap tolerance. (You will see the circle for the snap tolerance; just make sure the circle is completely within the existing polygon before double-clicking). Any overshooting lines will be automatically dropped.

  11. Each time you add a polygon, it will be selected. Update the records for each polygon as they are added. You should end up with an application looking similar to this:

 

You have just added several polygon features to a new polygon theme. Especially important is using the Polygon AutoComplete tool, which will allow you to create new polygons that are adjacent to existing polygons, without needing to retrace the common boundary.

 


Edit features with Split and Union

Suppose that now it has been decided that Summer is too busy a season to perform culvert maintenance. Therefore, the Summer polygon must be split up and merged with adjacent polygons. Some of the culverts will be placed in the Autumn polygon, and some in Spring.

  1. Open the Theme > Properties from the menu, and look at Editing properties. For the unions and splits we are performing, we will keep the default rules (Copy). However, be aware that several choices exist for these rules, and rules can be applied to each field.



  2. Do not make any changes to the dialog, and then click the Cancel button.

  3. First, split the Summer polygon using the Split Polygon tool . Start the splitting line outside of the Summer polygon, and end it on the other side of the polygon, making sure to go farther than the snap tolerance outside the polygon you want to split. Dangling ends will be deleted. You will notice that 2 polygons are selected.



  4. First, make sure there is no active selection (use the Select None button), and then using the <SHIFT> key and the Select tool , select the 2 adjacent polygons that are to be unioned. You will see selection handles around both polygons. You will also see that two records are selected in the theme table.

  5. Then select Edit > Union Features from the menu. Do this for both halves of the Summer polygon. You should end up with an application window that looks like this:



  6. If the attribute values are not correct, select the erroneous polygon(s), and edit records if necessary.

 

You have just used splitting and unioning to alter the coordinate and tabular parts of the theme you created in the previous task.

Splitting and unioning polygons can be used when areas or patches change shapes or size. For example, if a set of contiguous forest stands is harvested, it may be unioned a single new stand. If a single forest stand develops different characteristics over time, it may be split into several different polygons.

 


Stop editing and save your edits

  1. When you are satisfied with your edits, select Theme > Stop Editing. Click Yes in the Stop Editing dialog.



  2. Note that any changes made to the shapefile is saved to the disk. If this theme is added to another view or project, it will open in the same state in which it was saved.

 

Save your changes frequently, even if you do not stop editing. It takes a lot less time to stop and save your changes than it does to recreate a data set in case ArcView crashes during your editing session.

 


Create a new point theme

Creating point themes is similar to (but less complicated than) creating polygon themes, except that point and line graphics tools are used, rather than polygon editing tools. Attribute tables are altered in exactly the same manner.

  1. Create a new view. Rename the view from View1 to Crossings.

  2. Add the roads and streams themes from the \packgis\forest directory from the CD.




  3. Create a new point theme that represents stream and road crossings within the forest. From the menu, select View > New Theme. The feature type should be Point. Save the new theme on your Zip disk as crossings.shp. The theme will be open for editing, but will lack any features.



  4. Before adding any points, alter the structure for the theme table, so that it will be able to hold the proper attributes. Open the theme table (), and move it so that you can see both the view and the table. You will see that the table only contains the Shape and ID fields, and no records.



  5. Add two fields, one called Stream, and one called Road. Bake both of these fields Type: String , with Width: 25. For each point, we will encode the stream name and road name for the intersection. You will need to resize the table in order to see all the fields.



  6. Zoom into a location near a crossing that will allow you to place a point precisely. You will need to zoom in several times to achieve this level of precision. Using the Draw Point tool (), add a point at the crossing. You will notice that as soon as you add the new point, a record will be added to the table.




    Note that the point is selected (see the graphic selection handles) and the corresponding record is selected (shown in yellow).

  7. Now, make the other themes active, and click on the new point with the Identify Features tool (). You will see the records for the streams at this location. Make a mental note of the names of the stream and road.




    Dismiss the Identify Results dialog.

  8. Make the table active, and using the Edit tool (), alter the values for the new point, entering the values you saw in the last step.



    For the point I chose, there was no name for the stream, so I left the value blank.

  9. Zoom back out, and repeat the process for a few more points. You get the idea....

 


Create a new line theme

  1. Create a new view called NewRoads.

  2. Add the \packgis\forest\ortho_96.bil image theme from the CD. Make sure to specify Image as the Data Source Type.

  3. Create a new line theme (called new_roads.shp, on your Zip disk)

  4. Set the Snapping tolerances, as you did before.

  5. Zoom in and start digitizing some roads based on what you see in the image. You will want to maximize the view and the application in order to achieve better precision and accuracy.



  6. Continue adding a few other road segments

    You will also need to zoom in and out as you add features.

     


Create a stands polygon theme

  1. Create a new view called Stand Digitizing and add the same orthophoto image theme you added in the last step.

  2. Add the boundary theme and alter its legend to make it unfilled as you did before with the culvert inventory polygon theme

  3. Create a new polygon theme on your Zip disk called stands.shp.

  4. Zoom into the portion of the forest shown in the white outline below:



  5. Now you should see some clearly visible stands and recent cut units.



  6. Enable general snapping and set the snap tolerance as you did before.

  7. Open the theme table for the new Stands.shp theme in preparation for adding a few fields.

  8. Add 2 fields (Origin_yr and Species) with the definitions shown below:



  9. You should now see that the structure of the table is set up, but there are no records yet (because no features have been added)



  10. Switch back to the view, and use the Polygon draw tool and trace the first stand.



  11. Update the record for this polygon (origin year = 1995, species = Douglas-fir [PSME = Pseudotsuga menziesii])



  12. Use the Auto-complete polygon tool to create an additional polygon



  13. Update the values for this polygon's record as well (Origin = 1930, Species = Western hemlock [Tsuga heterophylla])



  14. Add a third polygon



  15. Alter the record



  16. You have just found that one of the stands needs to be split, and part of that stand merged with an adjacent stand. Select the northwestern stand of the group of 3 and split it into two pieces using the Polygon split tool .



    Note that the record has also been split:



  17. Use the pointer or select tool now to select the northernmost and easternmost 2 polygons (use the <SHIFT> key for making multiple selections).



  18. From the Edit menu, select Union Features. You will see that your polygons have been unioned, and the records have also been merged.




  19. Continue to add more polygons and records if you have more time left to get more practice.

  20. Stop editing (Theme > Stop Editing) and save your edits.

 

You have just used a digital orthophoto image as a backdrop for creating two new vector data sets (roads and streams). There are a large number of digital orthophotos for Washington state available from the Map Collections in Suzzallo library. Additionally, the WA Department of Natural Resources maintains a large collection of digital orthophotos that can be purchased directly from the DNR.


Close the project

Make the Project window active and select File > Close Project. If you wish to save the changes to this project, choose Yes, and place the project file on your Zip disk. If not, click No.

Because you have several themes that are open for editing, ArcView will ask if you want to save changes to the themes. Choose Yes.


Syllabus Schedule Class Meetings Assignments Course Data Internet Search

Current Grades

Contact Us CFR 590 Internet-only section Lab Locations  

 

The University of Washington Spatial Technology, GIS, and Remote Sensing Page is provided by the College of Forest Resources and the College of Ocean and Fisheries Sciences through Unit-Specific UIF. Site administrator: Phil Hurvitz.
Copyright © Phil Hurvitz, 1998-2003