Académique Documents
Professionnel Documents
Culture Documents
Page 1 of 30
Note: We suggest that you not select the Daily Digest feature.
You should receive a confirmation email shortly afterward, with instruction on how to use the GIS-L list.
The datasets used in this tutorial are available for download on the Map Collection Website. Feel free to download and
use these tutorial materials, as you wish, and to pass them along to interested colleagues.
1. Browse into the Folder where you saved the 01Introduction to ArcGIS_92.zip file.
Now you will take a look at the data you have extracted, using Windows Explorer. This part of the tutorial is designed to
familiarize you with the difference between how Windows recognized common spatial dataset filetypes, and how ArcGIS
recognizes them.
You should now see a number of different files, some of which have the same filename, but with different extensions
(Windows doesnt always show file extensions for known filetypes, such as dbf, or shp, in some cases).
2. If necessary, Click on the Name Field Header in the Explorer Window to Sort the files By Name.
What is critical to recognize about the contents of this folder is that all of the files with the same filename are actually part
of a single shapefile. The shapefile is ESRI proprietary vector data format. The fact that it is called a shapefile can
cause some confusion, since it is actually a collection of files.
Now you will take a look at the same data using the ArcGIS version of Windows Explorer, which is designed to interact
with these types of spatial data filetypes.
1. In the Arccatalog Catalog Tree, Scroll to the bottom of the Folder Group you are
currently browsing and find the Intro_To_Arcgis File. This is the Map Document
(Intro_to_ArcGIS.mxd) that we will start the tutorial with.
2. Double-Click on the Intro_to_ArcGIS.mxd to Launch Arcmap and Open the Map Document.
Main Menu
Standard Toolbar
Map
Data Display
Layers
Tools Toolbar
Map Display
View Toolbar
Table of Contents
You should now see something like what is shown above (dont worry about the little red exclamation marks, yet). Take a
few seconds to familiarize yourself with the ArcMap interface.
The Main Menu should be familiar to anyone who uses Microsoft Windows software. It is where you perform basic
file and document editing functions.
The Table of Contents is the area where your data layers will be listed and where you can interact with and alter the
properties of individual layers.
The Map Display is the area where your map data will be displayed.
The Tools Toolbar contains a series of tools that operate on the data displayed in the Map Document Window.
The View Toolbar changes between the Data View and Layout View of the Map Document.
When you opened the Intro_to_ArcGIS.mxd file, you might have noticed
that there were several data layers listed in the Table of Contents Panel, but
that these layers had little red exclamation marks superimposed upon the
checkboxes next to them. ArcMap Map Documents do not actually contain
the data that they display. Instead, to save storage, and prevent multiple
copies of a single dataset from proliferating within a single document,
ArcMap refers to the data, using what are referred to as absolute paths.
This means that the locations of the data layers in this Intro_to_ArcGIS.mxd
Map Document are referred to using the full path (i.e.
C:\2007_GIS_Workshops\01-Introduction_to_ArcGIS\Data\Shapefile)
which happens to no longer be valid for the datasets in this project, since we
downloaded the project from a web server, and extracted the files to our
C:\temp\your_initials\01-Introduction to ArcGIS\ folder. There are ways
to prevent this from happening, which will be covered later in the tutorial, but
for now, you simply need to tell ArcMap where to find the data that its layers
are looking for.
1. Right-Click on the
Area_of_Interest_polygon_polygon Layer, which is
the first layer in the Table Of Contents Panel.
2. In the resulting Context Menu, go to Data>Repair Data
Source
3. Browse to the C:\temp\your_initials\01-Introduction to
ArcGIS\Data\Shapefile\ Folder and Select the
Area_of_Interest_polygon_polygon.shp shapefile.
4. Click Add to Repair the Data Source.
CT_State_wo_Boundary
CT_Towns
Hydrography_Polygon
Railroad
You should be left with something
similar to the image below (ArcMap applies symbology colors randomly, so your color scheme may differ)
Note that, depending on exactly where you dropped the layers in the Table of
Contents Panel, some of your data may be obscured, and is almost certainly not in
the best order of display.
1.
from the Tools Toolbar and use it to Move your Map Display.
Not all data that you will use in GIS Analysis will come in an explicitly spatial data format. That is, some data may come in
tabular form, as a table of attribute records that pertain to some spatial feature or phenomenon. Many times, this data
may have spatial data included as an attribute (for instance
you
may obtain a table of Toxic Release sites, with Latitude
Longitude Coordinates as attribute fields). Here, you will
learn how to add tabular data, display it and subset to the
portion of the dataset you are interested in.
file
into
3. Select the USGS_Geographic_Names$ worksheet and Click Add to Add it
to your Map Document.
Note that the Source Tab in the Table of Contents is now active, and this new
data layer is visible there, but there has been no change in the Map Display
window. This is because the data you have added is a table, rather than a
shapefile and it does not yet have an explicit geographic display.
Note that there are a number of attribute fields for the features in this table.
Most importantly, there are numeric fields with Latitude & Longitude
Coordinates in Decimal Degrees that we can use to display this data.
You will be warned that the resulting layer does not contain Object-IDs
and you will be restricted in what you can do with it.
11. Click Ok, since we will remedy this problem, next.
12. Right-Click on the USGS_Geographic_Names$ Events Layer and Go
To Data>Export Data.
13. In the resulting Export Data Dialog, Change the Use The Same
Coordinate System As: to The Data Frame.
This is a shortcut to projecting your data to the same projection as the rest
of the data in this Map Document.
14. Browse to your C:\temp\your_initials\01-Introduction to ArcGIS\Data\Shapefile Folder and Save the New Shapefile
as USGS_Geographic_Names.shp. Click Save.
1.
Subsetting Using
Select by Attributes
2.
3.
4.
5.
6. Click Get Unique Values, and Double-Click school from the results.
7. Make Sure that your Selection Argument is: [CLASS] = school
8. Click the Verify Button to verify the query syntax (not really necessary here, but complex queries on large datasets can
crash ArcMap if the syntax is invalid). Click Ok.
9. Click the Apply Button, and then Click Close.
10. Close the Attribute Table.
You should see that some of your points in the USGS_Geographic_Names$ Events Layer are now highlighted bright blue.
This means that you have an active selection.
11. As you did previously, Right-Click on the USGS_Geographic_Names Layer and Go To Data>Export Data.
Notice that now, the Export: drop-down is set to Selected Features. This is something of a universal in ArcGIS.
Anytime you have an active selection in a layer and you apply some tool (Export, ArcToolbox Tools, Calculate Fields,
etc) to that layer, the processing is done ONLY TO THE ACTIVE SELECTION. This can be a powerful tool, but can
also be the source of frustration. If you are getting unexpected or quirky results from a process, always check to see if
you have a forgotten active selection by going to the Main Menu>Selection>Clear Selected Features.
12. Browse to the C:\temp\your_initials\01-Introduction to ArcGIS\
Data\Shapefile Folder and name the new file Schools.shp.
13. Click Save.
14. Leave the Coordinate System as the Default this time and Click
Ok.
15. Add the Exported Data as a layer when prompted.
16. On the Main Menu, Go To Selection>Clear Selected Features, to
Clear the Selection.
Many times, attribute data is contained in tabular form, separate from the Geographic boundary files that are used by GIS
software. This is particularly the case with Census Data. This is because the number of attributes available for some GIS
data is so large that including the files together creates prohibitively large layer files. In most cases, a researcher only
needs a limited number of attributes for analysis. ArcMap allows you to Join a tabular attribute file to its corresponding
Geographic File. Here we will use a key field, present in both the attribute table and the geographic boundary file for
the Census data for New Haven, to Join those two files.
You will be warned that one of your datasets is missing its spatial reference. Your table of Contents view will also
change back to the Source Tab, since you have just added a table of data, as well as a shapefile.
Note that you probably cannot see the Census Block Group files we just added, tgr09009blk00.shp (If you can see the file,
you are likely using ArcGIS version 9.1 or before). This is because the dataset does not have a *.prj file, which contains
information about how the numeric values that record the point, line and polygons in the dataset, relate to geographic
location on the face of the Earth. This means that you need to define the coordinate or projection system.
Prior to ArcGIS 9.2, the software would examine the numeric values that recorded the geometry of the boundaries and, if
the values fell within the normal Lat/Lon values (-90 to 90 & -180 to 180), it applied an assumed geographic coordinate
system using the North American Datum from 1927. This worked, sometimes. But what if your data was located in
India? The NAD 1927 Datum is not nearly as accurate as current datums, and is wildly inaccurate for any dataset falling
outside North America. Also, much of the data you work with in GIS is now created on the NAD 1983 datum, a far more
accurate reference system.
So, ESRI dropped the assumed geographic feature, so that you must now explicitly assign the correct coordinate system.
Unfortunately, ESRI has not updated much of its available data to reflect this new lack of automation, and much of the
base data they provide (not to mention that included with the last 20
years of software releases) still has no defined coordinate system /
projection. Here, we will learn to remedy that, and familiarize you with
the
ArcToolbox.
Defining a Projection/Coordinate System
2. Click on the Search Tab, at the bottom of the ArcToolBox Panel, and
Enter define as your Search Term.
3. Define Projection Tool should be one of the returned results. DoubleClick on Define Projection to open the ArcToolbox Tools Dialog.
4. Select the tgr09009blk00 layer from the Input Dataset Drop-Down Menu.
to
at
the
You should now see something like what is pictured at the left. The
tgr09009blk00
Layer has been
added to your
Table of
Contents.
Notice that the Export Drop-Down list has defaulted to Selected features. It is the
default action in ArcMap that anything you do to a layer, when you have an active
selection, only applies to the selection.
7. Check the checkbox that allows you to use the same Coordinate System as the
Data Frame.
Remember that we defined the Coordinate System as GCS North American Datum
1983? That was because the layer was created using Lat/Lon coordinates. Lat/Lon
coordinates locate features on the surface of the (roughly) spherical Earth, and are angular measurements. ArcGIS
needs a linear unit to perform many of the mathematical calculations you may want to apply to the data, such as
calculating area, distances, etc. By using the coordinate system of the Data Frame (which is State Plane) to export the
dataset, we can avoid the added step of projecting the data to a projection with a linear measurement.
1. Right-Click on the
AOI_Census_Blocks_SF1 Layer and Open the Attribute Table.
2. Click on the Options Button and Select Add Field.
3. Name the New Field UNDER18, and Use the Type: Short Integer.
4. Click Ok.
5. Again, Click on the Options Button and Select Add Field.
6. Name the
New
Field
AREA,
and Use
the Type:
Float.
Click Ok.
7. Scroll to
the far
right of the Attribute Table, Right-Click on the
Field Header for AREA and Select Calculate
Geometry...
8. Click Yes when warned about calculating outside
an edit session.
9. Change the Property Drop-Down Menu to Area.
10. Change the Units Drop-Down to Square Miles US [sq mi].
11. Click Ok
12. Right-Click on the Field Header for UNDER18 and Select Field Calculator
13. Click Yes when warned about calculating outside an edit
session.
14. Scroll Down the Fields List and Click on the AGE_UNDER5
to Insert it in the Calculator Argument.
15. Click on the Addition (+) Button to Insert the Addition
Operator in the Calculator Argument.
16. Scroll Down the Fields List and Click on the AGE_5_17 to
Insert it in the Calculator Argument.
17. Make Sure your Calculator Argument reads as:
[AGE_UNDER5] + [AGE_5_17]
18. Click Ok to Apply the Calculation.
19. Close the Attribute Table.
20. Click on the Display Tab of the Table Of Contents Panel.
Note that you have now created and calculated the values for
two different attributes of your data. One variable, UNDER18, was calculated from other variables in the dataset. The
other, AREA, was created using the Calculate Geometry Tool, which is a new feature in ArcMap 9.2.
Labeling Features
Adjusting Symbology
We are now ready to begin finishing our Map Document and preparing it so that it can be shared with others. To do this,
we will change from the ArcMap Data View to the Layout View. The Layout View will provide tools not available in the
Data View, primarily those relevant to creating Map Layouts.
1. Click on the Layout Button (it looks like a page), on the View Toolbar at the bottom left
corner of the Map Display.
Layout Zoom
Page Extent
Layout Pan
3. Click on the Page Extent Button to Return to the Full View of the page.
Note that these tools did not change the scale or extent of the data.
The data is contained within a rectangle referred to as the Data Frame. In the Data View, this rectangle was represented
by the edges of the Map Display Panel. Now, the Data Frame is an Object on the layout page. The fact that the Data
Frame is an Object on the Layout Page means that we can alter its properties.
Finally, there are a few elements that are considered fundamental to good mapmaking. While it is true that ALL maps do
not need ALL of these elements (Does a map of the entire earth really
need a north arrow?), it is also true that they can be critical tools in
conveying spatial messages, when used properly. Here, we will take the
final steps to complete our map layout, before exporting to portable
formats.
Map Title
North Arrow
Legend
12. In the Table Of Contents Panel, Click once on the AOI_Census_Blocks_SF1 Layer Name, Wait, then Click Again to
Highlight the Text.
13. Change the Name of the layer to Census 2000
14. Highlight the UNDER18 / AREA Text beneath the Layer Name and Change it to Under 18 per Sq Mi.
Note that the text changes with the alteration of the Table of Contents Panel.
Neatline
Finally, we will insert a neatline around all of the Map Elements as a way to finish the map, but also to control the clipping
that will occur when we export to JPEG.
Data Source(s)
At this point, you might like to export your map to an image that you can use in PowerPoint or a Word Document. Or, you
might want to save the map in a format that you can send to colleagues to view or print. Here you will learn to export your
map.
Exporting to JPEG
Exporting to PDF
You can now move your project by copying or zipping the C:\temp\your_initials\01-Introduction to ArcGIS\ Folder, in
its entirety, without having the problem of broken links that we experienced at the beginning of the tutorial.
MXD Map Documents are very small! You can save many versions of a project by saving multiple Map Documents. This
allows you to save several layout versions of the same data without using a great deal of disk space.
ArcMap supports long filenames for MXD Document, table and shapefile names. Use this to your advantage by giving
these files very specifically descriptive names. Coverage and raster filenames are limited to 13 characters.
Congratulations! You are now ready to explore ArcMap on your own! If you are interested in additional training materials,
or just need help with a specific GIS related issue, feel free to contact us at the Yale Map Collection!