Professional Documents
Culture Documents
Introduction to ArcMap
GISA01
Introduction to ArcMap
1.3.1. Purpose
The purpose of this exercise is to give you an introduction to ArcMap. Basic functions of
the program will be explored. We will also briefly describe the relationship between
geographic features and non-geographic attributes. More specifically, you will learn:
- What a shapefile and map document is.
- How to add and view data in ArcMap
- Which tools you can use to for instance move around and query map data in ArcMap.
1.3.2. Data
The data used for this exercises is the same as for the previous exercises 1.1 Windows
Explorer and 1.2 Introduction to ArcCatalog, downloadable from Moodle. The data
contains a number of shapefiles or geographical themes of Nicaragua.
If you have not yet downloaded the data for the previous exercises to your computer,
create a folder in your local working directory called 1_Intro_ArcGIS. Download the data
from Moodle and copy all the data files for this exercise to your newly created folder.
Note: Specific information on how to download and extract the data can be
found in section 1.1.2 Data in exercise 1.1 Introduction to Windows Explorer.
1.3.3. Background
1.3.3.1. ArcMap
As the name suggests, ArcMap is an application used for map-based operations. Data can
therefore be viewed and symbolized, analyzed, created and presented. Thus, ArcMap is
basically used for all mapping, editing tasks, as well as for map-based analysis.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 1
Introduction to ArcMap
1.3.3.2. Shapefiles
Different geographic information systems usually store data in different ways using
different formats. Geographic data consists of geometrical data and attribute data and in a
GIS geometrical and attribute data must be linked together.
ArcGIS can handle several file formats. Some, you might be able to open and view
directly such as coverages or shapefiles, whereas others might have to be imported in
ArcGIS through using extensions which provide additional functionality.
ESRIs own file format for storing geographic data is called shapefile. The shapefile
format consists of at least three files (.shp, .shx and .dbf). This is important to remember
when you copy data from one hard drive to another or to other computers/servers. A layer
cannot be opened and viewed in ArcGIS if one of these files is missing.
- Open Windows Explore and navigate to the folder where the exercise data is
located.
Take a look at the files named water. Observe that all files have the same prefix but
different file extensions.
.shp The .shp file is the file that stores the geographic feature geometry
(in this case its water bodies).
.dbf The .dbf or dBase file stores the feature attribute information as a
table.
.shx The .shx file is the index file which links the geometry with
attributes.
So for instance, when you open an attribute table in ArcCatalog or ArcMap, it is the
contents of the .dbf file that is shown. Sometimes when performing certain operations
other files are created:
.sbn and .sbx These files store the spatial index of features. They are created
when one performs specific operations like layer on layer selection
or a spatial join.
.fbn and .fbx Same as for the .sbn and .sbx files but for shapefiles that are read-
only.
.ain and .aih These files store the attribute index of the active field in a table or
a layers attribute table. They are for instance created when you
link two tables together.
.avl This file stores legend information of a layer. Basically, how the
data is displayed, in what colours, which symbols etc.
.prj This file stores the coordinate system and projection information.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 2
Introduction to ArcMap
1.3.5. ArcMap
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 3
Introduction to ArcMap
Note: If the start up dialog box does not show when you start ArcMap, click
Tools > Options in the main menu. In the General tab check Show start up
dialog. The next time you start ArcMap the start up dialog box will appear.
Note: If you are not able to locate the data, you most probably do not have a
folder connection to it. You can create one by clicking the Connect To Folder
button .
Just like in Windows Explorer and ArcCatalog, you can select and open several files at
once by pressing SHIFT or CTRL on your keyboard while left clicking.
- Add all shapefiles to your map by selecting all of them and then clicking Add.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 4
Introduction to ArcMap
You should now be able to see the map data. You might however think that the colours
are not very nice or adequate for what they represent. This is because ArcMap randomly
chooses colours when data is added. Later on in this exercise, you will change the
appearance of features and save your changes as a map project.
ArcMap is divided in two main sections, the Table of Contents (TOC) to the left and the
Map Display Window to the right.
The TOC shows you the names of all layers displayed in the map display window. The
map you are currently looking at contains eight data layers in Nicaragua which describe:
Layer name Description
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 5
Introduction to ArcMap
- Find out more about the Pan tool, what its icon looks like and what it does
through using ArcGIS Desktop Help.
Tip: ArcGIS Desktop Help can also be opened by pressing the key F1 on the
keyboard.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 6
Introduction to ArcMap
Note: If you are not able to see the Tools toolbar click View > Toolbars in the
main menu and check the option Tools.
Lago de
Managua
- If necessary, use Pan in the Tools toolbar to reposition the map so that Lago
de Managua is centred in the map display window.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 7
Introduction to ArcMap
Through changing the drawing order of layers in the TOC a user can determine how
layers are to be drawn in the map display window. Generally, it is best to have polygon
layers at the bottom followed by lines and with point layers at the top. In this order no, or
very few features, will be hidden in the map display window.
- Change the order of the layers in the TOC so that Airports and Cities around
Lago de Managua are visible.
- Using the same procedure as above, assign appropriate colours to the layers
Nicaragua, Cities and Water.
Note: You can also open the Symbol Selector dialog window by right clicking
the layer name and choosing Properties from the menu that appears. Then, in
the Layer Properties window, click the Symbology tab and click the symbol.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 8
Introduction to ArcMap
- Open Windows Explorer and check so that your recently saved map document
is saved in the correct location on your computer.
It is rather common that users save files without really knowing where they save them.
Always remember to try to keep a tidy file structure on your computer.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 9
Introduction to ArcMap
in the display window as it allows you to see a features specific attributes from the
attribute table.
- Click the Identify in the Tools toolbar.
- Click wherever in the map display window. The Identify results window will
appear.
When first using the Identify tool, it displays the info of a feature in the top most layer as
indicated in the drop down menu Layers in the Identify results window. To acquire
information regarding an object in a specific layer, that is if its not on top, the layer
name must be selected in Layers.
- In the drop down menu Layers select Airports and then click on one of the
airports in the map display window.
- The data available in the attribute table becomes visible in the right-hand side of
the Identify results window.
Question 1.3.1: What are the names of the three airports located around the lake
Lago de Managua?
Question 1.3.2: What is the name of the southernmost city around the lake?
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 10
Introduction to ArcMap
The Magnifier window works just like a magnifying glass. As you pass the window over
the data, you see a magnified view of the location under the window. Moving the window
around does not affect the current map display.
- In the main menu, click Window > Magnifier.
- To move the window, click the title bar of the window and drag it around the
display window.
- To change the magnification assign a percentage value in the Magnifier drop
down menu or right click the title bar and select Properties and assign a value
in the drop down menu Magnify by.
- Close the Magnifier window
The Viewer window, also available in the main menu under Window, behaves like
duplicate map display window. Right clicking inside this window brings up a menu with
useful tools that you can use to pan or zoom to view a different part of the map than
displayed in the map window.
The other option, Overview, simply gives you an overview of the data. A box in the
Overview window represents the current area displayed in the map display window. You
can use this box to pan around the map. You can also shrink or enlarge the box to zoom
in or zoom out.
- Explore the other window view options Viewer and Overview located in the
main menu under Window.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 11
Introduction to ArcMap
Question 1.3.3: Which of the three airports around Lago de Managua is the closest
to the city of Managua (give the name of the closest airport) and what is the
approximate distance of the closest airport in meters?
Tip: If you regret removing layers its possible to negate the removal by
clicking Edit > Undo remove.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 12
Introduction to ArcMap
Field
Record
Cell
To open an attributes table of a specific layer you simply just right click the layer name in
the TOC and choose Open Attribute Table. The attribute table of the layer will then open
in a new window. As previously mentioned, the tabular data or attribute data is located in
the file with the .dbf extension.
- Open the attribute table of the layer Water.
Just like in ArcCatalog, you see at the bottom of the table that it contains a total of 26
records. This means that there are 26 features displayable in the map for the layer Water.
- Click the small box furthest to the left of the first record. The record turns blue.
This indicates that it is selected.
- Now look in the map display window to find the selected feature. The borders
of the feature should appear as blue on the map indicating that it is selected.
- Click Options in Attributes of water, at bottom right of the table window.
Choose Select All. What happens?
- Click Options again but this time choose Clear Selection. What happens?
Also here you can use CTRL and SHIFT on your keyboard to select several records at the
same time.
- Now, click Options once more and choose Select by Attributes. The Select by
Attributes dialog window appears.
The Select by Attributes dialog window allows you to select features in a layer through
expressions or queries. If you take a closer look at the records in the attribute table for the
layer Water, you see that there are three classes in the field FIRST_SORT. These are Bay,
River and Lake. Using Select by Attributes you can for instance select features that are
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 13
Introduction to ArcMap
classified as rivers or you could select features that are classified as lakes. Lets select all
the rivers.
- In the Select by Attributes dialog window, double click on FIRST_SORT in
Fields and then click the equals button =. Click the button Get Unique Values
and then double click on River in the Unique Values box. Finally, click Apply.
Question 1.3.4: How many records in the table Water are classified as rivers?
- Now click Options again and choose Switch Selection. Notice what happens.
- Repeat the Select by Attribute procedure as outlined above, but this time, build
an expression that only selects lakes.
Now that you hopefully managed to select all the lakes in the layer Water, you will create
a new layer called Lakes, which only contains features that are lakes.
- Right click on Water in the TOC and choose Data > Export Data.
- In the Export Data dialog window choose to Export Selected Features and to
use the same coordinate system as the layers source data. Give the new layer the
name Lakes and save it in your working directory.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 14
Introduction to ArcMap
- Click Yes when asked if you want to add the exported data to the map as a
layer.
- You can never save too often so click on File > Save. This will save your map
document Nicaragua_map.
- Close ArcMap.
- Open Windows Explorer, and navigate to the folder where the exercise data is
located. Check so that all the files making up your new shapefile Lakes are
there.
Now you could re-open the map document again in ArcMap. However, in order to
demonstrate what happens when files are moved, you will move all the files called Lakes
from their current location.
- In Windows Explorer, select all files with the prefix Lakes.
- From the Windows Explorer main menu choose Edit > Cut.
- Go up one level in the directory tree and choose to paste your cut files by
clicking File > Paste in the main menu.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 15
Introduction to ArcMap
- Start ArcMap again and choose to open An Existing map. Select and open
Nicaragua_map.mxd.
Notice that all layers were successfully opened or loaded except for the layer Lakes. This
is highlighted with a red exclamation point to the left of the layer name. The reason for
this is, of course, that we moved the files and they are no longer at the location specified
in the map document when you last saved it.
If you want fix the problem you can close ArcMap without saving your map document
and move all the Lake files back to their previous location or you can:
- Click the check box twice beside the red exclamation mark and specify the new
location of the files in the Set Data Source dialog window that appears.
- Close ArcMap.
09-03-2010 Copyright 2010. Lund University GIS Centre. All rights reserved. 16