Introduction To Gis Workbook
Introduction To Gis Workbook
http://www.lib.umd.edu/binaries/content/assets/public/gov-info-gis/research-and-instruction/
introduction-to-gis-workbook.pdf
Last Modified: January 2012
www.lib.umd.edu/GOV/
Table of Contents
GIS Facilities at the University of Maryland ................................................................. 1
Introduction .................................................................................................................. 2
Components of ArcGIS Desktop 10 .............................................................................. 3
ArcCatalog ..................................................................................................................... 4
ArcMap .......................................................................................................................... 8
Symbology and Labeling ...18
Performing Analysis in the Map Display .27
Queries ....................................................................................................................... 35
Layouts ....................................................................................................................... 40
More Training ............................................................................................................ 44
Other Facilities
There are other departmental (e.g., anthropology, architecture/urban planning, civil
engineering, landscape architecture, and geography) GIS laboratories on campus that are
restricted to faculty, staff, and students in each of those disciplines. Additionally, the Office of
Information Technology's software licensing program (http://www.oit.umd.edu/slic) offers
ArcGIS and ArcInfo for various platforms at special/reduced rates for faculty and staff at the
University of Maryland.
Introduction
A GIS (Geographic Information System) is a powerful tool used for computerized mapping and
spatial analysis. A GIS provides functionality to capture, store, query, analyze, display and
output geographic information.
For this seminar we will be using ArcGIS Desktop 10, the newest version of a popular GIS
software produced by ESRI. This course is meant to teach some fundamental GIS operations
using ArcGIS. It is not meant to be a comprehensive course in GIS or ArcGIS. However, we hope
this seminar will get you started using GIS and excited about learning more.
Definition of GIS
(Geographic Information System)
A computer-based system
that stores geographically
referenced data, links it
with non-graphic attributes
(data in tables) allowing for
a wide range of information
processing including
manipulation, analysis and
modeling. A GIS also
provides for map display
and production.
After opening the software, you will be greeted by screen like this one:
The left side of the screen lists a set of possible locations for data in the Catalog Tree. Dont
worry if yours does not look exactly the same. It is easy to add directories for data by clicking on
the Connect to folder icon on the top left toolbar.
ArcGIS Terminology
Term
View
Definition
a collection of themes
Example
Washington, DC
Theme
Housing
Attribute
a defined characteristic of a
theme
Year Built
Value
Previewing Data
From the catalog tree on the left side, navigate to C:\ESRI\GIS_WRKSHP\. You will see a list of
shapefiles. The .shp extension of the file means that these files are in shapefile format and thus
can be read by ArcGIS. Although this is not the only file format ArcGIS can read, it is a popular
format.
1. To view file extensions, navigate to Customize > ArcCatalog Options > and under the
General tab unclick Hide file extensions and hit OK.
NOTE: This is what shapefiles look like in Windows Explorer a combination of 3 to 7 individual files
make up one shapefile. You should view GIS data in ArcCatalog.
TECHTALK
There are two kinds of data that can be viewed in ArcGIS vector and raster. Vector data is
a format whereby points, lines, and polygons are used to represent real features on the
earths surface such as an address location, a street or a zip code area. Raster data is a
continuous image of a portion of the earths surface and is made up of grid cells or pixels as
in an aerial or satellite image. If both vector data and raster data are georeferenced to the
same position, they can be used in the same view.
2. After locating data, it is possible to preview it before adding it to ArcMap. Click once with
the left mouse button on mdcounties.shp and then select the Preview tab.
This will allow you to look at the mdcounties file. We will return to these files later.
Metadata
Metadata is loosely defined as data about data. This is important, especially in a geospatial
context, because it contains information about the source, author, creation, and geographic
referencing. ArcCatalog allows you to view and manage metadata.
1.
Organization of ArcMap
ArcMap can be opened from multiple locations. This time, we will open it from ArcCatalog. It
can also be opened from the start menu or an icon on the desktop.
This is a new feature with version 10 of ArcGIS software that allows you to make a shortcut to
your most-used data location. Since were just beginning, we are going to skip this option and
simply use the default. Click on Cancel.
ArcMap makes a default geodatabase in the C:\My Documents\ArcGIS folder.
Basic
Toolbar
Map Display
Table of Contents
When you begin, the menu bar changes to show the menu functions available. You can change
the way the ArcMap looks by moving or hiding toolbars. Docking toolbars in another location
can be done by clicking on the vertical gray bar at the left edge or top and dragging it to a new
location.
To hide or show toolbars, click Customize (on the menu bar) > Toolbars and check or uncheck the
name.
Any changes made to the interface will be kept and applied every time you use ArcMap. Please
note that some toolbars are dependent upon the license level. Some toolbars and extensions
will be visible, but the user will not be able to access the functionality if they do not possess the
required license.
At this point, most of the icons of the button bar and tool bar are grayed out because we do not
have any data in our view. Lets add data to see what functions are available to us.
10
On the left-hand side of the view the three selected layers are displayed in the views table of
contents. Each layer has a little check mark in the box to its left. This means they are turned
on and being displayed. If you uncheck them, that layer is no longer visible.
The colors of your layers and their order may differ from the example on the instructors
screen, but you should have all three datasets. Each of these layers contains geometric objects
that represent some real world entity. Points are used in the md_cities layer to represent
Maryland cities. (At a larger scale cities could be represented by polygons.) Lines are used in the
md_interst layer to represent the interstate highways in Maryland, and polygons are used in
the mdcounties layer to represent Maryland counties.
Notice how most of the button and tool bar functions are available to us now. Also notice the
scale display next to the Add Data button.
This display tells you what the scale value is of the current view. If it displays the value 1:
2,922,847 that means that every one unit on the map is equal to 2,922,847 units in the real
world. As you zoom in and out of the map the scale will change dynamically. Scale is an
important concept in computer mapping. The scale of the map often determines the amount of
information that can be shown without the map becoming too busy.
11
Also notice the position display at the bottom right of the screen. As you move the cursor
around the view these units change dynamically according to your cursors position. Your map
units are likely in decimal degrees.
Select the Zoom In tool with the left mouse button. Notice the cursor changes to the
3.
Go to one corner of the area you would like to zoom in on and click with the left mouse
button. While holding down the mouse button, move the cursor to the opposite corner that
defines the area you want to magnify.
Release the mouse and the view window should zoom in to your defined area and redraw.
Zoom Out zooms the view window out from the point clicked. To use:
1.
Select the Zoom Out tool with the left mouse button. Notice the cursor changes to the
With the left mouse button click the area of the map you want to zoom out from. The view
window should zoom out, centering on the area that you clicked.
12
Pan moves all the view layer layers in the direction you move your mouse. It is a useful tool
when viewing data that is larger than the view window, and you do not want to change your
scale or loose detail by zooming out. To use:
1.
2.
Select the Pan tool with the left mouse button. Notice the cursor changes to a hand.
Click a spot on the view with the left mouse button, and while holding down the button move
the mouse away from the direction you want to move the view and release the button. The
view should move and redraw the view in the new location once the mouse button is
released.
Full Extent zooms the view window to the full extent of all layers shown in the view. This is
very handy when you want to get back to the way things looked when you first added the layer.
Zoom to Previous Extent zooms the view window back to the previous view window extent.
Practice using the zooming and panning tools to view the Maryland data. You may also zoom in
and out by using the wheel on your mouse. You can always return to the initial view by pressing
the Full Extent button; so dont be afraid to move around!
Identifying Objects
Now lets examine the identify tool. This tool helps us to identify the objects of a layer. It is
located on the Tools toolbar and it has the icon with the letter i in a blue circle. This tool will
display the attributes of a particular layer object. These attributes are actually located in a table
that we will discuss later.
To use the identify tool:
1.
Click the identify tool with the left mouse button. Your cursor changes to a cross hair with
the i icon.
When you click on a feature in the map, the Identify Results window will open and you can
choose what layers you would like to be able to identify or see what you have identified.
13
The Data Frame Properties dialog box pops up. You should be in the General tab. Take a look
at the Units portion of the dialog box. As you can see, the map units are already determined
in this case, but you can choose what units you would like to use for display. The map units
here are decimal degrees because all of the ESRI data is shipped in decimal degrees. Not all
data is in decimal degrees. Some data, especially images, are in other map units such as meters.
1.
14
Because our data is in decimal degrees, it is considered unprojected. We want to give our view
a standard projection. For Maryland, the Maryland State Plane 1983 NAD projection is typically
used. Lets set our data frame to this projection.
2.
Notice that it states that our current coordinate system is a geographic coordinate system,
which is not projected.
Lets select a projected coordinate system.
3.
4.
5.
6.
7.
8.
Click on Predefined.
Click on Projected Coordinate System.
Scroll down and click on State Plane.
Click on NAD 1983 (Feet).
Scroll down and choose NAD_1983_StatePlane_Maryland_FIPS_1900 (Feet).
Click Apply and then OK.
15
TECHTALK
The Maryland State Plane is a Lambert Conformal Conic Projection. This projection
preserves shape and maintains accurate distance in an east-west direction for the lower 48
states, but only at the expense of direction (north, south, east and west) and area. Other
projections such as Mercator preserve direction and shape, but sacrifice accurate distance
and area. Depending on the use of your data, some projections may be more suitable than
others. Much of the data that you buy commercially is stored in decimal degrees, thereby
allowing you to select and change projections. However, data from governmental sources is
usually stored in a projection.
When you first add a layer to ArcMap, it is shown based on its coordinate system
(geographic or projected). When you add additional layers that have different coordinate
systems, ArcMap creates an on-the-fly projection and changes it to match the first. This
does not change the projection of the data itself, but rather the way it is displayed in the map
display. On-the-fly projection works best of layers are based on the same coordinate
system. If the coordinate systems are different, you will get a warning. You can display the
data, but the spatial alignment may be off. The differences are small, but if you need
precise results you may need to do a geographic coordinate system transformation.
16
1.
Click the measure tool with the left mouse button. Your cursor changes to an L-shaped
2.
3.
Move the cursor to the point on the map where you want to start measuring and click.
Now move the cursor to the point where you want to stop measuring and double-click.
Observe in the window the measurement you just made. This measurement is composed of a
segment length and total length. It also indicates the display units of measurement. To change
the units, click on the drop-down arrow next to the sum symbol.
You can take measurements that are composed of multiple segments that do not follow a
straight line. To do so:
1.
2.
3.
segment is defined.
4.
Now move to the second point along your defined path and click once.
Repeat this process until you reach the point where you want to stop, and double-click.
Try measuring different parts of Maryland. What is the length of its border along the MasonDixon line? How wide is the Chesapeake Bay near Baltimore? What is the length from the
Prince Georges County side of Washington, DC to its opposite end in Montgomery County?
If you wish to measure in some other format (for example, kilometers instead of miles), you can also
go back to the data frame > Properties > and change the display units.
17
Click once, with the left mouse button, the dot below md_cities in legend/ table of contents
to bring up the Symbol Selector.
The symbol selector has several features that allow you to edit each layer symbology regardless
of type (i.e. point, line and polygon.) You can change the symbol, color, size, and angle as well
as add more specific symbols to your list.
Lets change the styles and colors of our view layers. Well begin with cities.
1.
2.
3.
4.
Now we have a much more attractive view. You can experiment with different colors and
patterns until you find the right ones to suit your final map.
Note that your saved file has an .mxd extension. This stands for map document, and it is a GIS-specific
file type. If you try to open this document without using GIS software, it wont work!
TECHTALK
An ArcGIS project or map document is a file instructing ArcGIS on what data to use and
how to display it. The data layers are not stored with the .mxd file. If you copy your
project file to a disk you must also copy all of the dataset files used in your project to that
disk as well or reset the location from the layer properties, source tab.
19
Before we label, its important to set the rules and choose label position and priorities. Let
begin with the md_cities layer.
1.
Right click on md_cities to open the Context Menu. Many operations in ArcMap are
Under the Labels tab choose the Placement Properties icon to open the Placement
Properties window. The default priority location for labels is in the upper right corner.
20
4.
5.
6.
Click on the Change Location icon, with the left mouse button to open the Initial point
placement window.
Scroll up and choose Top Only, Prefer Center.
Press OK in this box as well as on the Placement Properties box and Layer Properties box.
Notice that some of the labels for md_cities have moved to make way for the new interstate
labels.
It is possible to set your labels in a predefined style.
1.
2.
3.
Under the Labels tab there should be an icon Label Styles in the
bottom right corner under the heading Pre-defined Label Style.
Click on the Label Styles button.
21
Choose the U.S. Interstate HWY symbol in the upper right corner and click OK.
We can set priority for viewing by right clicking on md_cities > Properties > Placement
Properties.
In the Placement Properties window click on the Conflict Detection tab.
From here it is possible to define the priority of the labels. Labels for layers marked with a
High weight will be less likely to be overlapped by other layers. It, however, is not necessary in
this case as dynamic labels are not flexible enough for our needs.
To be able to individually move labels we can convert the dynamic labels to annotation or use
interactive labels.
22
Close any extra dialog boxes if necessary. Right click on the md_cities layer to open the
context menu.
Scroll down to Convert Labels to Annotation.
If you get an overflow annotation dialog, just close it.
1.
2.
3.
4.
As you put the cursor over the label it will turn into cross-hairs. Click and hold the mouse
button, move the label, and then release the mouse button.
Double click on the label with the aqua line still surrounding it to access the Properties
dialog. Here you can change the text, font, and symbology.
23
If necessary, use the menu bar to click on Customize > Toolbars > Draw to display the
Draw toolbar.
Click on the New Text button, which looks like an A. When the cursor changes to a cross
hairs with an A click on the map and add text. This works for anywhere on the map.
There are 6 other options for the custom creation of text also available.
3.
To access these, click on the drop down box (arrow pointing down) to the right of the New
Text button, which looks like an A.
Once you use any of these tools to create a graphic object, little boxes or handlebars will
appear around that object surrounded by an aqua colored line. That tells you that the object is
selected. If an object is selected you can move the object to a different location with the Select
Elements tool . Click on the Select Elements tool, move it over the selected object, then
press the left mouse button and drag the object to the new location. Once the object is moved
to the location desired, you deselect the object by clicking anywhere in the view. The
handlebars should disappear. You can reselect the object with the Select Elements tool by
clicking on it with the left mouse button. The handlebars will reappear. If you want to delete an
object just press the delete key with the object selected.
To use, select the appropriate tool with the left mouse button.
24
To use the New text and Label tools you simply select the tool and click the spot on the view in
which you want to place the text. A text window will appear allowing you to type in your text.
Type the text and press OK.
To use the callout tool you must first click the point where the line pointer will begin. While
holding down the mouse button, drag the pointer in the direction the text will appear. Release
the button at the spot where the actual text will begin. A text window will appear allowing you
to type in your text. Type the text and press OK.
To use the splined text tool click at the point where the text will begin. Use the tool to draw a line
(does not have to be straight) by clicking at each segment point and double-clicking at the end. A
text window will appear. Type the text and press OK. The splined text tool is ideal for
To create new circle text, move to the spot on your view that will be the center of your circle.
Click and hold down the mouse button while moving away from the circles center until you reach
your preferred radius. Release the mouse button at the radius position and add text. The text will
To create new rectangle text, move to the spot on your view that will define a corner of the
rectangle. Click and hold down the left mouse button while moving to the opposite corner of the
rectangle. Release the button at the opposite corner and add text. The text will fill the
designated rectangle.
To create new polygon text, move to the spot on your view that you want to begin your polygon
and click with the left mouse button. Move the cursor to the endpoint of the first polygon side
and click once. The first side is defined. Now move the cursor to the endpoint of the second side
and click once. The second side is defined. Repeat this process until your polygon is complete,
then double-click to end the polygon and add text.
With the drawn object selected i.e. the handlebars displayed around the object, right click
with the mouse.
25
From this window you can also select other options that enable you to:
2.
To change properties, click on Properties > Change Symbol. This window will let you
Click on Edit on the menu bar > Select All Elements and hit the delete button on your
keyboard.
We have learned how to use some of the buttons and tools to view and edit our data. Now,
lets begin to perform some analysis with our data.
26
Right click on mdcounties to open the Context Menu. From the menu, click on Open
Attribute Table.
A table opens showing all the attributes stored with each of the Maryland County polygons.
Lets just briefly examine the attributes in the layer table window:
2.
Move the mouse to the scroll bar at the bottom of the table. Using the left mouse button
click the scroll arrow to the right to view more attributes.
One of the first fields is Name which is the name of the county. Other attributes stored for
each county include Area, Pop90, Males, Females, White, Black, Married,
Medianrent, and so on. Much of this data is Census data and includes numerical data that we
can use in our analysis. Notice at the bottom it says Records (0 of 24 Selected). Its tells us we
have a total of 24 items in our table. There are 23 counties in Maryland plus Baltimore City.
27
3. Move the mouse to the top of the table. Right click on the
Name field. It should open a window:
4. Click, with the left mouse button, the sort ascending or the
sort descending options on the button bar.
Hide the md_cities and the md_interst layers by unchecking the boxes next to their names.
Right click on mdcounties > Properties.
Click on the Symbology tab once with the left mouse button.
7
5
28
7. Choose any color ramp in the drop down box in the top right side.
If you want to control the colors assigned to each county, double click on the colored symbol. It
will allow you to change the color.
8. Click the OK button.
Each county will be given a different color. This is useful for distinguishing differences based on
attributes.
This time, click on Quantities in the window on the left and choose Graduated colors.
Under the section for Fields choose Females in the drop down box and click OK.
Lets look at the Layer Properties more closely to examine other ways to portray this data.
1. Right click on mdcounties > Properties again to bring up Layer Properties. It should
automatically come up in symbology mode. If not, check the symbology tab.
2. Look in the Classification area of the window in the upper right corner. It identifies that we
are classifying by natural breaks and have 5 classes.
3. Click on the Classify button.
The Classification Statistics window in the upper right corner provides useful statistics that
may help in our analysis such as the minimum value, maximum value, mean and standard
deviation. The chart at the bottom shows you where the breaks will occur. You change these
manually by clicking on a line with the left mouse button, holding it, moving it to the new area,
and releasing it.
Now lets reclassify the same data to portray a different view:
The Classification section in the upper left allows you multiple ways to classify the data. You can
choose the type of classification, number of classes and a rounding value. Lets try a different
classification scheme.
1.
2.
3.
From the Method drop-down box select Equal Interval and from the Number of classes
drop-down box select 4.
Click OK to close the Classification window.
Click OK on the Layer Properties window to change the map.
30
The view is now changed to display four colors representing the four classes:
The new classification changes the groupings of our color map resulting in fewer categories and
differences in which categories the counties fall into. Experiment with the different
classification systems to see their effect on the data.
TECHTALK
The classification options are defined (by ESRI) below. Some of the methods are not
suitable for certain types of data.
Natural Breaks - This is the default classification method in GIS. This method
identifies breakpoints between classes using a statistical formula (Jenks optimization).
Natural Breaks finds groupings and patterns inherent in your data.
Quantile - In the quantile classification method, each class contains the same number of
features.
Equal Interval - The equal interval method divides the range of attribute values into
equal sized sub-ranges. The features are classified based on those sub-ranges.
Standard Deviations ArcGIS finds the mean value and then places class breaks above
and below the mean at intervals of either 1/4, 1/2, or 1 standard deviations until all the
data values are contained within the classes.
Manual and Defined Interval ArcGIS allows you to set your own classification
methods.
31
automatically come up in
symbology mode. If not, click
the symbology tab.
2.
3.
4.
32
Click OK.
Notice how the number of vacant housing differs dramatically between counties. Some
counties, like Baltimore City have a lot of vacant housing. Others, like Calvert County, have very
few. The dots do not represent the actual location of vacant homes. They are randomly
placed in each county. Remember that each dot represents 300 vacant homes, not a single
vacant house, so some generalization occurs.
Chart Maps
This third type of analysis overlays a chart onto our map. It is a good mapping technique when
you want to display and compare multiple values or values for each layer object. In our chart
map we will examine the number of homeowners vs. renters.
1.
2.
3.
4.
Select both fields (by holding down the Ctrl button while clicking) then click the right arrow
button.
5.
Click OK.
Our view changes to a chart map depicting the breakdown in renter versus owner occupied
housing in Maryland. Which county appears to have the most renters in the state? Which
county appears to have the most owners? Can you see any spatial patterns in homeownership?
33
34
Queries
The real power of GIS lies in the queries that can be performed on the data. Through queries
we can find precise information quickly. We can also ascertain patterns in the data such as the
location of customers or low-income residents.
Attribute Queries
There are two main ways to create attribute queries. The first way is through the menu bar.
1.
Click on Selection and then Select by Attribute to open the Select by Attributes window.
The query window lets you choose which layer you would like to select from and changes the
list of layer attributes below depending on what you pick in the drop down box. It also contains
a set of operational tools in the middle left and all the table values for each attribute on the
middle right. The operational tools including the standard mathematical ones =, >, <, etc. as
35
well as the Boolean operators and, or and not. You build a query by first selecting an attribute
and then an operation you wish to perform with its values.
Lets start with a very simple query that locates an object:
2.
3.
4.
5.
6.
right.
7.
Finally, in the box listing the attributes, scroll down until you find the name Prince Georges
and double-click the name. Each time you click or double-click the name or symbol
Verify that your query looks the same as the example box on the previous page and click OK.
The boundary of Prince Georges County is highlighted in the aqua. ArcMap always highlights
selected objects in aqua as a default, which is why it is good to have a gray or darker
background for queries.
36
37
Spatial Queries
We examined simple queries about location and character using attribute data. Now lets look
at queries that consider the spatial relationship between objects or layers. This is where the
true power of a GIS is demonstrated.
Perhaps we want to locate all of the cities within Prince Georges County so that we may export
them as a new layer file as well.
1.
2.
From the first drop-down box labeled I want to: choose the option select features from.
3.
Check the box md_cities under the option the following layer(s).
38
4.
In the next two drop down boxes choose are completely within and then PGCounty.
5.
All of the Maryland cities (in this dataset) that are within Prince Georges County are selected.
Now try exporting the selected cities as a new map layer. See the previous section for
instructions.
39
Layouts
Layouts are a way of allowing you to make professional quality presentations. You can also
include tables and charts in a layout as well. To make the transition from view to layout easier,
you should remember to do a few things while in the Map Display:
Set the map and display units first. This needs to be done before a scale is placed on the
layout. (Right click on Layers > Properties > General tab)
Choose appropriate colors for your map. Otherwise you will have to return to your map to
make changes.
Give your view and layers meaningful names. These will be the names the layout uses to
title your map and label the legend.
1.
2.
3.
4.
5.
To do so:
1.
2.
3.
4.
40
Repeat this process with the PG Cities layer. An alternate method for changing the name of a layer is
to click on it once, then pause and click on it again. Youll see an editable box.
From the main menu, click View > Layout View. You must be in layout view to add legend
items to your map.
The view of our map is now visible as a layout. Notice that the layout toolbar is now visible.
From here it is possible to zoom in, zoom out, pan, fixed zoom in , fixed zoom out, zoom to
whole page, zoom to 100%, go back and forward between extents, and change the percentage
of your zooming. Practice using these tools.
From the menu bar, click on Insert. This box allows you to add various
Click on Title and a little box will appear on the layout with the name you
chose when you saved your project. It is possible to change the name by
Add the North Arrow and Scale bar by clicking on those options from the
menu bar. For each of these you will be given a range of choices.
4. Pick the one that looks best to you and click OK.
41
For the legend we will be using the Legend Wizard. It opens by asking you what layers you want
in the legend.
From the top menu, choose Insert > Legend.
Only choose the new layers you added to the map yourself, PG County and PG Cities.
Remove the other layers by highlighting them and clicking on . The two layers you
want in your legend should appear in the Legend Items area on the
right.
3. The next box allows us to decide properties for our legend title. The
default options are good, except we would like to have our legend
centered. Under Title Justification choose the option to center and click
1.
2.
Next.
The next box deals with the legend frame. At the top drop down box,
choose any type of border and click Next.
5. We will go with the default in the next two boxes for the symbol patch
and spacing. Click Next twice.
4.
From here we have most of the elements but they are not in the right place.
move at once by holding down the shift key when selecting the objects.
42
From the menu bar, click on Insert > Text. In one box type Source: ESRI Data & Maps
2001. In the other type your name and the date.
Once your layout is finished you can print it by pressing the print button or from the menu
bar select File > Print.
When the print window opens press OK.
From here you can choose the location to save it, alter the resolution, and
select a file type.
43
44