Geography 387 Lab Home | Geography 387 Home | Geography Home
Lab 1: Exploring ArcGISOutline
1.0 PurposeTo familiarize you with the following:
2.0 Introduction and backgroundAbout the software ArcGIS 9.x is structured around three main modules: ArcCatalog, ArcToolbox, and ArcMap. These modules represent the three basic necessities of GIS: data management, data analysis, and data output/mapping. In this lab we will cover these modules in greater depth, as well as discover some of their key functionality. Cartography Additional information Lab equipment Printing Instructions For grading efficiency and to reduce the use of paper resources, we prefer that you turn in your assignment materials electronically through email. If you do need to print out a hardcopy of your assignments in the lab, please print to the GIS lab printer, CASSINI. When you first log into your GIS student account, you will have to add CASSINI to your list of printers. Windows XP: Go to the Windows NT/2000: Go to the Copying Data You need to copy the data for Lab 1 to your work directory. To copy the data right click here and select Save Link Target As. Save the zipped data file to your work directory in your flash drive, network drive, or a folder you created in C:\WorkSpace. You need to unzip the file. Find the .zip file in Windows Explorer. Double click on lab1.zip and WinZip will open. Click the "Extract" button to extract the Zip archive contents to your work directory. After you successfully extract the files you can close WinZip. Then in My Computer open the "lab1" folder to verify that the files and folders have been extracted. The data that we will be using in this lab are: Geodatabases:
Coverages:
Shapefiles:
Maps:
4.0 About ArcCatalogIntroduction to ArcCatalog ArcCatalog is the ArcGIS module used for organizing, browsing, and managing your data and map documents, as well as for viewing and editing metadata. In many ways, ArcCatalog is similar to Windows Explorer. For instance, when you modify a file's location, or create or delete a file, you do not need to save the changes -- it is done automatically. Since it is easy to delete files this way, you should be careful to delete only when you are sure that you will not need the file any longer. Starting ArcCatalog
ArcCatalog is similar in structure to Windows Explorer. On the left hand side is a view of the Catalog "tree" showing how the data is organized. The right hand side provides options for exploring the contents of the data shown in the Catalog tree. You will notice that there are different icons used to represent the available folders and their contents. When ArcCatalog is initiated, it automatically looks for folders containing spatial data. Any spatial data it finds will be given a special icon to indicate the specific type of data in the file or folder.
Outside of the areas for exploring the catalog folders and their contents, there are several menus and toolbars associated with ArcCatalog. To find out what a particular button does, hold your cursor over the button for several seconds. A note will appear telling the function associated with the button, and a more informative description will appear on the bottom of the ArcCatalog window. If you hold your cursor over the upward pointing arrow (the first button directly under 'File'), you will see a note reading 'Up One Level,' and the bottom of the window will read 'Go to the next level up in the catalog tree').
Connecting to your data To access your data in ArcCatalog you have several choices. If there is already a connection to the drive with your data, you can navigate down the catalog tree until you find your data folder. This, however, has the potential for causing quite a bit of clutter and confusion if your data is more than one or two folders down from the drive connection. A second option is to create a direct connection to your data. A direct connection will help avoid clutter in that you can make a connection straight to the folder holding your data, rather than having to navigate through other folders. It is also a necessary step if the drive with your data is not shown in the Catalog tree (i.e.,if you are using data saved on your network drive). An example of a direct connection can be seen in the graphic above. -- C:\WorkSpace\Lab1 is a direct connection to a local data folder on the C: drive).
Try this out and connect to your network drive, flash drive, or to the local folder that you will be using for your work. What can be done in ArcCatalog? Earlier in the lab, it was mentioned that ArcCatalog is used for "organizing, browsing, and managing your data and map documents, as well as for viewing and editing metadata." Let's explore that a bit more: For organizing data, ArcCatalog is quite easy to use. However, if you delete, move, or otherwise alter the data using ArcCatalog, it is permanent (i.e., if you delete a coverage, it is GONE--you cannot retrieve it). Data organizing in ArcCatalog is very similar to that in Windows Explorer. You can drag and drop coverages, shapefiles, or geodatabases into new workspaces, or you can use the Windows shortcut keys (Ctrl-C, Ctrl-X and Ctrl-V for copy, cut and paste, respectively). Try this out by copying and pasting your lab data into a new folder. Browsing through your data is simple using ArcCatalog. The Catalog tree displays in a hierarchical fashion all of the items in the Catalog, much like how data browsing is done through programs such as Windows Explorer. A folder that contains files will have a box with a plus or minus sign to the left of the file name. This indicates whether or not the folder has been expanded. Take a moment to explore the data in the Catalog tree. You can use the arrow buttons on your keyboard, or your mouse to navigate. While navigating, pay attention to the changes that take place on the right hand side of the ArcCatalog window.
The right-hand side of the Catalog allows you to examine the data further. For instance, select the usageog coverage. If you then click on the "Contents" tab on the right hand side of the window, you will see a list of the files that comprise the coverage. You can also see these files if you click on the plus sign to the left of the usageog icon. If you click on the "Preview" tab, you will see a preview of the data geography or the data attribute table. To change from geography view to table view (or vice versa), change the value listed in the preview pulldown menu at the bottom of the Window.
What can be done in ArcCatalog? (cont.) Using the usageog coverage, if you select the "Metadata" tab you will see any metadata (or data describing the data) that is associated with the coverage. No metadata has been created for the shapefiles and coverages in this lab, so most of the metadata file is not filled in for usageog. ArcGIS automatically fills in a few fields in the metadata--under the Spatial and Attribute headings.
Explore the metadata for the cotati_rohnert_park.mdb geodatabase layers. In a later lab we will be creating our own metadata. Managing your data
On your own, explore the property sheets for each of the feature classes for usageog. To do this, expand the usageog coverage by clicking on the plus sign next to the coverage icon, right-click on the one of the feature classes (e.g., arc, polygon, tic, label), and select Properties.
5.0 About ArcToolboxIntroduction to ArcToolbox Starting ArcToolbox To start ArcToolbox, click on the ArcToolbox icon What is in ArcToolbox?
For an overview of all of the functions of a tool set, click help after right-clicking. To run a tool, simply double-click on the specific tool you want to use. This will open a window for setting the various file inputs and outputs and other options related to the tool. Take a few minutes to explore the Toolbox and get a sense of what kinds of tools are available.
6.0 About ArcMapIntroduction to ArcMap ArcMap is the ArcGIS module used for mapping -- creating, viewing, querying, editing, composing, and publishing maps. ArcMap is what you will be using for the majority of your GIS work. When you first start ArcMap, you may see the"Welcome to ArcMap" window. This window provides the options to 1) create a new map, 2) create a new map using a map template, 3) open an existing map,or 4) open the last map you were using. This semester, we will most often use options 1 and 3 (creating a new map, and opening existing maps).
If you do not see the Welcome window, someone has probably turned this option off. Don't worry, you can still access all of the options through the main menu. For the sake of description, open the prepared map document provided with the lab data (school_map.mxd ). You can open this from the Welcome window, or when ArcMap is open, click on File -> Open File, and navigate to the location of the map document. You will notice that the school_map.mxd file is not particularly stunning from a cartographic standpoint. Later in the lab, you will modify the map to make it a bit more cartographically pleasing. What is in ArcMap?
The top portion of the ArcMap window contains the menu and toolbars. You can change which toolbars are displayed by right-clicking on the top portion of the window (the gray part) and selecting which menu you need or don't need (As seen in the image above). The left portion of ArcMap shows a tree display of the layers (the "layer tree") added to the map (and whether or not they are currently displayed). There are three ways which the included data can be explored: by "Display" or "Source" or "Selection". You can toggle among the three by selecting the appropriate tab on the bottom of the layer tree:
The Display tab shows the layer name, whether or not the layer is displayed (if there is a check mark in the box next to the name, the layer is being displayed), and how the layer is displayed (to see this, click on the + to the left of the name to expand the display). The Source tab shows the appropriate layer icon (same as seen in ArcCatalog), as well as the location (or "source") of the data. Lastly, the Selection tab shows a list of the layers in the active data frame and lets you check the ones you want to make selectable. The right portion of ArcMap provides a view of the data. You can select to view the data in "Data View" or in "Layout View": The globe icon represents the 'Data View', and the sheet of paper icon represents the 'Layout View'. In the Data View, you can zoom in and out, pan, identify, select, etc. the data in this portion by using the available tools:
Try zooming in and out and otherwise exploring the data using the above tools. Making a map layout for cartographic output After exploring the Data View, go to the Layout View. You can do this by either clicking on the sheet of paper icon at the bottom of the view window, or by selecting View-> Layout View. A new set of tools are provided for exploration of the layout:
In Layout View, you also may use the Data View tools to zoom in / out / pan, etc. These tools will only affect the extent of the spatial data being displayed in the map layout. Layout View also has its own tools for zoom in / out / pan, indicated with a little white box under the magnifying glass or hand (see above). These layout view tools affect the extent of the layout sheet (e.g., paper) being displayed on the screen. Try experimenting with the layout tools. To insert a title, legend, neatline, etc. on your map, click on Insert and select the object that you would like to add. Experiment with adding information to your map. Try adding a title, legend, scalebar, north arrow, and your name. You can delete any of these objects by selecting clicking (select) and then pressing the "Del" key. You will make this map more appealing later in the lab. For now, do not save your changes. Adding data / creating your own map Now that we have spent some time with a created map, let's make our own. In ArcMap, you cannot have two map documents (.mxd files) open at the same time, so to open a new map document, we either need to open a new ArcMap window or close the existing map document. Since we will not need to use the school_map.mxd map document for this portion of the lab, click on File -> New (or you can use the shortcut key "Ctrl-N" or click on the new file button on the menu bar), and select "Blank document" in the My Template tab. Do not save changes to the school_map.mxd map document.
To add data to a map document, there are several options:
Try each of these methods, and add the usageog coverage, and the uscnty, usroad, and usriv shapefiles to your new map document. Since it is likely that you will open data from both your network drive and from copies on your local drive, it is helpful to use a "relative path" to your data. This will be handy if you copy your lab data folder to a local drive to work, or if you move it from one drive to another. If you do not store your data sources as relative path names, you will run into the problem of ArcMap looking for the data on the last drive which you used. For example suppose you create a map document with your data located in C:\WorkSpace\lab1 and you then copy the entire folder to another drive. When you open the map document from the new folder, it will still look for the data in C:\WorkSpace\lab1. The relative path name tells ArcMap to look for the data in the same relative location to the map document (e.g., in the same data folder, or wherever it is in relation to the map document). To set your map document to use relative path names, click on File -> Document Properties, select "Data Source Options", and "Store relative path names to data sources" Click OK. Note: You will probably want to do this with ALL map documents that you create in this course. Occasionally, even if you set the map document to use relative path names you will still have problems with "broken sources." These will be indicated by a red ! next to the layer's name: To fix this problem, go to Properties -> Source ,and re-set the appropriate data source by clicking on the "Set Data Source" button. Symbology and data appearance
You can also do this by right clicking on the data layer and selecting the properties option. From the properties window you can view and modify the display properties of a dataset, including the layer's transparency, labeling options, symbology, and source. This lab will only cover a few of the options (display, symbology, and labels), but you will want to take a few moments to familiarize yourself with the other functions in the properties window. Symbology: Under the symbology tab are the options for changing the display of data. From here you can decide to display the data as Features (single symbol), Categories (unique values, unique values many fields,or match to symbols in a field), Quantities (graduated colors, graduated symbols, proportional symbols), or Multiple attributes (quantity by category). You can also decide which color(s) and symbol(s) to use to represent the data. For example, if you want to use usroad to display type of road rather than simply location, double-click on usroad to open the Properties window, and click on the Symbology tab. As the default, usroad is drawn as a single symbol. Since we want to show all of the different road values, we will use Categories -> Unique values. Let's divide the road by administrative class (Value Field = ADMN_CLASS). To add these values to the display, select "Add all values." If you do not want all of the values to be displayed, you can add values individually using the "Add values" button. To change the symbology of other data layers (even of other types of data: shapefile, coverage, or geodatabase) the process is the same.
Symbology and data appearance (Cont.) To change the representation of Interstate, State Highway, and US Highway, double click on the line next to the name and select an appropriate line symbol from the Symbol Selector. Change to appropriate symbols. Since there are no "other values," you can deselect the <all other values> symbol. When the display is to your liking, click OK. Display An important feature on the display tab is the option to set transparency. This allows for a layer to be seen through another layer. For instance, with the uscnty layer displayed, the usageog layer can not be seen. By setting the top layer to some level of transparency, both layers can be seen. To explore this, we'll make the uscnty layer partly transparent. Open the properties window for uscnty and select the Display tab. Under "Transparent: % " enter 75 and click on OK. Now the state boundaries are shown clearly, and the county boundaries are less pronounced in the display. Using the Labels tab under properties is an easy way of inserting the names of features on a map. We will try this with the usriv layer and add labels for river names. Go to the Labels tab in the usriv property window. To insert labels, check the "Label Features" box and select which field to use for labeling (we will use "Name"). From here you can change the style, symbol, font, font size, and location of the labels by selecting from the button options under "Label" in the window. Take a few minutes to explore these options.
EXTRA CREDIT: Querying data in ArcMap
Hint - you can write the query as one string, or you can use the procedure options (Create new selection, Add to current selection, Remove from current selection, Select from current selection). If you have not had much practice writing queries, you may wish to write each part of the query seperately and use the select from current selection option. When doing searches of this type, it can be handy to display only those records selected. To do this, change the option to show selected:
Notice that the selected counties are highlighted in the attribute table and the display map.
Miscellaneous bells and whistles in ArcMap When you have zoomed to an area of interest, you can set a spatial bookmark. A spatial bookmark will allow you to zoom to the area whenever you want. To set the bookmark, select View -> Bookmarks -> Create. Rhonert Park/Cotati and Cotati bookmarks have already been created for you.
7.0 ConclusionIn this lab, the basic functions of ArcGIS's ArcCatalog, ArcToolbox, and ArcMap have been covered. Hopefully you will now feel comfortable navigating around the software and the lab computers. If not, the best way to become comfortable is to keep at it. Spend as much time as possible working with the software and with the computers! As with any new software, these basics do not come close to being comprehensive. To really grasp the software, you will need to spend quite a bit of time just exploring, trying out different functions, seeing what works (and what doesn't), and just clicking on buttons, menus, bits of data, and especially the help files. In the remaining labs this semester, we will spend time examining more specific ArcGIS functions. 8.0 To turn in
The bulk of this lab module was developed by the Department of Geography at UC Santa Barbara. Created by Sean Benison, Sunhui Sim, and Jordan Hastings and based on a previous lab by Sarah Battersby and Nicholas Matzke. UC Santa Barbara (© 2000-2005, Regents of the University of California). Used with permission. The original UCSB lab was tailored for instruction at Sonoma State University by Matthew Clark This page was last modified on Sep. 3, 2008 by Matthew Clark |