ArcGIS Exercises
ArcGIS Exercises
Exercises
October 2005
1
Exercise 1
Introduction to ArcCatalog
Ton Mank (2002); last update: Fabio Corsi (August 2005)
Exercise 2
Introduction to ArcMap
Willy Kock (2002); last update: Fabio Corsi (August 2005)
Exercise 3
Data entry and management
Walid Belal (2002); last update: Monika Kuffer (September 2005)
Exercise 4
Using toolboxes
Ellen-Wien Augustijn (2004); last update: Connie Blok (October 2005)
Exercise 5
Spatial referencing
Richard Knippers (2002); last update: Richard Knippers (September
2005)
Exercise 6
Tabular data and basic queries
Blanca Perez (2002); last update: Monika Kuffer (September 2005)
Exercise 7
Spatial queries
Maura Gebska & Lalit Kumar (2002); last update: Fabio Corsi (August
2005)
Exercise 8
Measurement operations
Maura Gebska (2001); last update: Connie Blok (October 2005)
Exercise 9
Spatial analysis with vector data
Blanca Perez (2002); last update: Ellen-Wien Augustijn (October 2005)
Exercise 10
Spatial analysis with raster data
Ellen-Wien Augustijn (2002); last update: Ellen-Wien Augustijn (October
2005)
Exercise 11
Spatial data visualisation
Ton Mank (2002); last update: Connie Blok (October 2005)
Exercise 12
Data quality
Rob Lemmens (2002); last update: Fabio Corsi (August 2005)
Acknowledgements
Staff of different ITC departments has contributed to the exercise notes; there names
can be found on the previous pages. The aim of the working group responsible
for the compilation of the materials was to make the practicals equally suitable for
students in the GIM, GFM and UPLA course. This book is an update of the 2004
(version 3.0) exercise book
We like to acknowledge the municipality of Enschede for providing us with
the manhole data that was used to create a height grid. Finally, Wim Feringa was
responsible for the layout of this volume.
Authorship
As ITC staff or student, you are welcome to use the exercises notes in this volume
in your teaching and learning. However, as a courtesy to the authors, you are
required to notify the author when using these materials in your teaching, and
you may not change the contents of the exercise notes without the author’s
approval. You may also use these materials on ITC related consulting projects on
the condition that the authorship and the contents of the exercise notes are not
changed.
About ArcGIS
ArcGIS (a product of ESRI) consists of two parts: ArcCatalog is used to preview
data, store metadata and change the data structure; ArcMap can be used to edit
data, analyse data and visualize data (including map layouts).
When you buy ArcGIS, you can decide to buy the complete set
containing all the functionality of the software. This will be called “Arc/Info”.
There are two other levels, ArcGis – Arcview and ArcGIS – ArcEditor that will
provide you with a subset of the functionality.
ArcGIS comes with its own dataformat called the Geodatabase
(see particularly exercise 3), but it can work with many other data formats, like
Shapefiles, Coverages and CAD files.
Please remember that although we have chosen ArcGIS as software
pakage for the exercises, the theory taught in this module could have been
illustrated equally well with a number of products from other vendors.
Blackboard
You are not able to do the exercises described in this volume without using the
corresponding Blackboard course: 03: Principles of GIS (2005). Under Assignments
in Blackboard, you can access the following:
● exercise description (also included in this volume)
● exercise data
● results of the exercise
● answers to the questions posed in the text
● solutions for the challenges included in the exercises.
The folders in Blackboard are made available in a sequence that corresponds with
the practicals. Note that every exercise has its own folder with data.
► if time allows, complete some of the challenges, but if you are under
time pressure, skip the challenges and proceed to the next exercise.
Symbols
In this document, you will see a number of symbols representing different
meanings.
► Activity
This symbol means that you have to do something either on your computer
or on paper or a series of actions can follow.
□ Action
This symbol means that you have to do something either on your computer
or on paper.
▐ Attention
This symbol means that you have to be cautious about the point that is
mentioned here. It may tell you what to do in case of error or even how to
prevent errors.
Book reference
This symbol means that you can refer to a section in the textbook of principles
of GIS, for better understanding on the theory.
Question
► Challenge
Exercise 1 17
Topics:
1.1 Introduction to ArcCatalog 17
Toolbars
1.2 Starting ArcCatalog: the user interface 18
The ArcCatalog window
1.3 Why use ArcCatalog? 19
Browse for maps and data
Explore the data
View and create metadata
ArcCatalog as a gateway to ArcMap
Manage data sources
1.4 The basic functions of ArcCatalog 22
Browse for maps and data
Explore the data
Exploring Geographic data.
Exploring Tabular data
Change how tables look
Change the width of a column
Change the position of a column
Freeze a column
Sorting columns
Calculate statistics
Adding a column
View and editing metadata
Editing metadata
Manage data sources
ArcCatalog as a gateway to ArcMap
1.5 Challenge 37
1.6 Summary 38
Exercise 2 39
Topics
2.1 Introduction to ArcMap 39
Toolbars
Why use ArcMap?
How to learn ArcMap?
2.2 Using map documents 40
What is a Map Document?
The Map Window
The Table of Contents
Toolbars and Menus
2.3 Moving around the map 46
Exercise 3 75
Topics:
3.1 Introduction 75
Data entry and management
Shortcut:
Toolbars
3.2 The Geodatabase 77
Explore personal Geodatabase
Managing Personal Geodatabase
3.3 Data entry and editing 84
Digitise new polygon building blocks to the buildings feature class.
Geodatabase Topology
Working with shared boundaries and vertices
Create a new point feature class for bus stops
3.4 Summary 97
3.5 Challenges 98
Exercise 4 99
Topics:
4.1 Introduction 99
Shortcut:
4.2 Step by step exercise 100
What are toolboxes
Executing a tool
Finding tools
Creating your own toolbox
Adding tools to a toolbox
Show toolbox
4.3 Challenges 108
4.4 Summary 109
Exercise 6 141
Topics:
6.1 Introduction 141
Shortcut
Toolbars and Toolboxes
6.2 Exploring the data 143
Identifying features
Interactive Spatial Selection
Perform a basic query
6.3 Create and modify tabular data 148
Identifying errors
Improving the database
Option one:
Option two:
Create a new table
6.4 Joining, relating tables and performing queries 156
Relating tabular data
Joining tabular data
6.5 Summarizing tables 163
6.6 Challenges 166
6.7 Summary 167
Exercise 7 169
Topics:
7.1 Introduction 169
Shortcut
Toolbars
Exercise 8 183
Topics:
8.1 Introduction 183
Shortcut
Toolbars and Toolboxes
8.2 Measurement functions 185
Introduction Exercise
Point measurements
Interactive line measurements 190
Line measurements - Length
Polygon based measurements
8.3 Challenges 196
8.4 Summary 196
Exercise 9 197
Topics:
9.1 Introduction 197
Shortcut
9.2 Description of the operations 198
UNION:
CLIP:
DISSOLVE
INTERSECT:
ERASE:
9.3 Conceptual model 201
9.4 Step by step solution 202
Defining the output workspace
Defining excluded areas
Defining ‘obligatory’ areas
Choosing ‘candidate’ areas
Within a district with young population
9.5 Challenges 217
9.6 Summary 218
Exercise 11 237
Topics:
11.1 Introduction 237
Shortcut:
Toolbars and Toolboxes
11. 2 Step by step exercise 238
Production of an Administrative map
Production of a population density map
Data classification
Number of dwellings in Enschede
Labelling area features
Producing a layout
11.3 Challenges 255
11.6 Summary 256
Exercise 12 257
Topics:
12.1 Introduction 257
Shortcut 257
Toolbars
12.2 Quality assessment 258
12.3 Challenges 261
12.4 Summary 262
Introduction to ArcCatalog
Topics:
What do we use ArcCatalog for, Getting familiar with the ArcCatalog interface,
How to browse for map documents and data, Explore geographic and tabular
data, View and create metadata, Using ArcCatalog as a gateway to ArcMap.
NB, not all functions of ArcCatalog will be treated in this exercise due to time limitations.
When necessary, additional functions will be introduced later in the course.
Data necessary to complete this exercise can be found in the Blackboard course
03: Principles of GIS (2005) under: Assignments/Exercise 1: Introduction to
ArcCatalog/Exercise data
BEFORE we start the ArcGIS application, we will first have a look at the most
important components of ArcCatalog.
Toolbars
Toolbars are areas of the application’s interface where you have buttons that
activate various features and functions. Each one of the ArcGIS applications has
a number of different toolbars. Each toolbar can be made visible (activated) or
hidden (deactivated).
17
1.2 Starting ArcCatalog: the user interface
In the paragraph: ‘Getting familiar with the ArcCatalog interface’, you will
be introduced to the various toolbars of ArcCatalog, and will learn where to find
them and what they do.
► Start ArcCatalog
□ Start\Programs\ArcGIS\ArcCatalog
Fig. 1.1
Open ArcCatalog from
desktop
When ArcCatalog starts, by default the Main Menu and the Standard Toolbar
appear. Other toolbars can be activated to perform additional tasks using the
Toolbars item under the View menu. For this exercise all of the toolbars needed are
already visible.
The position of the toolbars within the interface is flexible; they can float on
the desktop and you can reposition them at any time or, alternatively the toolbars
can be docked to any side of the ArcCatalog window.
Fig. 1.2
Overview of
ArcCatalog interface
Like in Windows Explorer, you can view the content of a folder or database in
the Contents tab. Similarly to Explorer, you may choose to see the contents as
small or large icons, in the form of a list with details or to see a snapshot of their
geographic content.
Fig. 1.3
‘Snapshot’ Preview
of various types of
geographic data which
can be managed with
ArcCatalog
For a general understanding of the geographic extent of the data, the thumbnail
view will do. However to examine the geographic data more closely, the Preview
tab allows a detailed displays of the data. Using the appropriate buttons from
the Geography toolbar, you can zoom, pan the geography or identify (get a text
description of) features in your data.
Fig.1.4
Detailed Preview of the
geographic data
Alternatively you can switch the display from Geography to Table and view the
attribute table associated with the geography.
Fig. 1.5
Preview of the
attributes associated
with the geographic
data.
Metadata are properties and documentation describing the data. Properties are
derived from the data source, like data type (e.g. shapefile) and geometry type
(e.g. polygon). Documentation is additional information which helps understand
where the data comes from and what it is about (e.g. title, summary description,
ownership, publication data, language of the dataset; metadata date). A popular
definition of Metadata is ‘data about data’.
Fig 1.6
Metadata describe
the properties and
document the data
ArcCatalog has a built-in metadata editor. The metadata editor can be used to
store additional information or to create new metadata when no metadata exist.
Once you have examined the data using ArcCatalog, you may want to perform
[A] some analyses, or create a map or a layout using ArcMap. You can open the
application ArcMap by double-clicking on an ArcMap document, which has the
following icon [A] and the extension .mxd. Alter-natively, you can start ArcMap
[B] by pressing the button [B] from the Standard toolbar.
In order to browse the data, you will first have to establish a connection to the
location where the data resides. This location can be local, on your C:\ or D:\
drive or somewhere on the network. Given that you were asked to copy the data
from Blackboard to your personal directory on M:\, you will start by establishing
a connection to your M:\ drive:
[C] □ In the Standard toolbar (see Fig. 1.2), find the Connect to Folder [C]
button and click on it.
□ In the Dialog Window, navigate to the M:\ drive, see Fig. 1.7
□ Click OK
If you copied the exercise data in your root folder of the M:\ drive, then notice that the
folder Exercise01 is now visible in the tree. If you copied the data under a different folder,
please continue opening the tree structure until you reach the appropriate folder.
fig. 1.7
Connect to Folder
dialog window
When you select a folder, notice that in the Contents tab you will see all of the
files, datasets and subfolders stored under the selected folder.
Now let us have a closer look at the content of the subfolders of the
EnschedeData:
□ Exercise01→ EnschedeData
▐ Notice that the content in the folder ‘Enschede Data’ is displayed with a
different icon in the Contents tab. ‘Large_enschede.mdb’ is a Personal
Geodatabase
The layers contained in the Personal Geodatabase are now displayed. Layers
within a Personal Geodatabase are called Feature Classes
► Explore the buttons from the Standard toolbar. Which button allows
you to find out the type of these data?
Answer:
▐ Notice that if you leave the mouse cursor on a button for a few seconds, a
small popup window with the name of the button will appear.
□ Encircle the type of features that each one of the following feature
classes contains:
e_boundary: Points - Lines - Polygons
e_districts: Points - Lines - Polygons
e_mainroads: Points - Lines - Polygons
e_neighbourhood: Points - Lines - Polygons
e_railway: Points - Lines - Polygons
e_roads: Points - Lines - Polygons
e_water: Points - Lines - Polygons
To learn more about the Folders and data types, refer to the Help menu:
ArcGIS Desktop Help, on the Contents tab: ArcCatalog - Getting started
with ArcCatalog - What?s in the Catalog.
□ Make sure that you have the Contents tab selected. See Fig. 1.3
Although the view is set to thumbnails you see that only some of the feature
classes are displayed as thumbnails, while others are simply displayed as large
icons. This is because thumbnails are not created automatically, but you need to
specifically create them:
► Create Thumbnail
[E] □ From the Geography toolbar select Create Thumbnail [E] and click
once.
□ Next, return to the Contents tab and notice the icon has changed into a
small image of the preview.
Once you have produced thumbnails for all of the Feature classes in the Personal
Geodatabase selecting the Contents tab should display something similar to fig.
1.8:
Fig. 1.8
Result of producing the
Thumbnails within the
Contents tab.
You have learnt to browse data from different sources. In the next topic you will
explore the data by displaying both its geography and its attributes.
Most of a GIS data sets are composed of a geographic and a tabular component.
ArcCatalog allows you to preview either of them; you can toggle between them
using the dropdown list in the bottom of the Preview window:
Fig. 1.9
Toggle the contents of
the Preview window
□ Select the file: e_neighbourhood Feature Class from the Catalog tree
What you see now in your preview is a vector dataset that comprises the boundaries
of neighbourhoods of the city of Enschede.
You can use the Geography toolbar to explore the geographic data:
Fig. 1.10
The buttons of the
Geographic toolbar
The Zoom In / Out buttons allow you to control the level of detail or the extent of
the area which is displayed in the preview window.
□ Click and drag a box over your area of interest (Fig. 1.11)
□ Release the mouse. The area you have defined will now enlarge to
occupy the entire display area of the Preview window (Fig. 1.12)
Fig. 1.11
Defining the
geographic area to
enlarge
Fig. 1.12
Preview of the
geography at an
enlarged scale
You have now enlarged the central part of the Feature Class. Because part of
the data in the Feature Class now falls outside of the Preview window it is not
displayed. To maintain the same scale and see the data beyond the display select
the Pan button.
The Pan button allows you to drag the display in any direction.
□ Click and hold the mouse button at any point in the display window.
□ Move the mouse and notice that the display will follow the move-ments
of the mouse.
□ Practise the Pan button to move around the data maintaining the same
visualisation scale.
When you are done exploring the data at the current zoom level, the Full Extent
button allows you to return to the full extent of the feature class.
□ Click the Full Extent button and notice that the whole Enschede area is
now displayed.
You may want to know the name of a certain neighbourhood. The Identify button
allows you to retrieve the attribute information of a feature by pointing at it with
the mouse.
□ Study the Identify Results window. You?ll notice that one of the
attributes displayed is the name of the neighbourhood.
You can click inside other neighbourhoods to visualise their attributes in the
Identify results window.
Fig. 1.13
Process to identify the
attributes of a feature
We will now have a look at the attribute table that is connected to the e_
neighbourhood Feature Class.
► Preview tables
□ In the Preview, change the dropdown list to Table. See Fig. 1.5 and Fig.
1.9
There are several options that will allow you to personalise the way the table is
displayed in the preview.
If you want to change the appearance of the table, e.g. to improve the readability
of the text, you can change the default settings: for instance you may want to use
‘light green’ to highlight a selection rather than the default ‘pale blue’ and you
may want to set the font size to 10pt.
□ Click on the heading of one of the columns. Notice that the whole
column turns from white to pale blue
Fig. 1.14
Dialog window to set
ArcCatalog options
Depending on the font, size and length of records some of the information may
be hidden and/or not readable. To help readability, you may want to change the
width of the columns.
□ Position the mouse over the extreme right edge of the column heading:
[F] ID_ (notice the pointer of the cursor changes to [F])
□ Double-click with the left mouse button. The column width will now be
adjusted to the width of the longest entry in that column
▐ Notice that this change is temporary. If you select a different data set or close
the ArcCatalog session, the default column width will be restored.
Sometimes tables contain many columns. In order to work efficient you may have
to rearrange the columns and to position the ones you need next to each other.
► Reposition a column
□ Click the column heading: ID_ (notice that the whole column changes
to the default colour you have just selected)
□ Click the column again and hold down the mouse button
□ Drag the column heading to the location between the columns SHAPE*
and OBJECTID (notice a red line indicates the new location of the
column ID_)
▐ Notice that this change is temporary. If you select a different data set or close
the ArcCatalog session, the columns will resume their default positions.
Freeze a column
Sometimes you may want to compare the values in one column to the values in
the other columns. You can prevent one or more columns from moving when you
scroll the window horizontally by ‘freezing’ them.
► Freeze/Unfreeze Columns
□ Scroll horizontally by moving the horizontal slider and notice that the
column NAME1_ remains fixed at the beginning of the table.
▐ Notice that this change is temporary. If you select a different data set or close
the ArcCatalog session, all columns will be automatically unfrozen.
Sorting columns
► Sort Records
□ Scroll down the list and notice that the numbers increase
▐ Notice that this change is temporary. If you select a different data set or close
the ArcCatalog session, records will resume their default order.
Calculate statistics
► Calculate statistics
□ The Statistics dialog box pops up and displays all information about the
values in the column AREA_
Adding a column
If you want to store additional information in the attribute table of a geodata layer
you may want to add a separate column to the table. ArcCatalog provides the
tools to add columns and define their properties.
However, ArcCatalog will not allow you to enter and/or modify the data in
the records. We will see the editing process later on, when dealing with ArcMap
functions.
□ In the dialog window Add Field, fill in the name of the new column.
Leave the rest of the properties as they are (we will treat this later in the
course).
□ Click OK
Fig. 1.15
Preview window - table
mode.
http://www.iso.org/iso/en/ISOOnline.frontpage
http://www.fgdc.gov/metadata/contstan.html
► Explore metadata
□ In the view area, click the Metadata tab to visualise the metadata
information window.
Fig. 1.16
Metadata window -
Default Stylesheet
► Changing stylesheets
Editing metadata
You may need to create the metadata for a new data set or change the metadata
information for existing data. ArcCatalog allows you to add or change the
information in the metadata using the metadata editor. Let’s change the metadata
of the e-neighbourhood Feature Class. We know that the data set was produced
and obtained from the Municipality of Enschede. We?ll now add the information
of the Municipality to give them the credits they deserve and include them as
distributor:
► Edit metadata
[G] □ Click the button: Edit metadata [G] in the Metadata toolbar
A dialog window opens. Notice that a number of fields have the word ‘REQUIRED’
(IN RED) and a brief description of the type of information expected in that field.
The font is red to make sure the user notices that these fields are part of the
minimum information required by the metadata standard. We will deal with the
completeness of the metadata at a latter stage. For the time being,
□ Select Distribution [1] from the topmost line of the dialog window
(follow the numerical sequence in Fig. 1.18 and Fig. 1.19):
□ Click on the Distribution tab [2] and click on the Details... button [3].
This will open another dialog window (Fig. 1.19).
Fig. 1.18
Example of steps to
edit metadata
□ Select the Organisation [4] option and click on the Address [5] tab.
□ Now enter the name of the organisation [6] and the address [7] in the
appropriate fields.
Fig. 1.19
Editing contact
information with the
ArcCatalog metadata
editor
□ View the updated information in the metadata window. Note that some
of the stylesheet will not include all of the information of the metadata.
To check the updated information select the FGDC stylesheet and click
on Distribution Information link.
Using ArcCatalog it is easy to manage your data in a similar way as you are used
to do with Windows Explorer.
You can copy, move, delete and rename any item that appears in the Catalog
tree or in the Contents window.
Let’s create a new folder and copy some existing data into it.
□ Type a new name for the folder you have just created, e.g. ‘My_folder’
Make sure that none of the Feature Classes is active. You should see
nothing displayed either in the Contents, in the Preview or the Metadata
Fig. 1.20
Creating a new folder
with ArcCatalog
So far we have briefly explored some of the most important functions of ArcCatalog.
But the purpose of ArcCatalog is data browsing and basic data management,
when you need to edit geo-spatial data, analyse it or create maps you will need to
use another application of the ArcGIS suite: ArcMap.
Most of the exercises that follow will be dealing with the basics of geoinformation
processing using the functions of ArcMap.
□ From the Standard toolbar select the ArcMap Icon [B] [B]
You will see the ArcMap splash screen, and then you will be prompted to select
an empty map, a new template or an existing map.
But this is the topic of the next exercise! So you can stop here and exit ArcMap.
□ In the ArcMap dialog window ignore the different options and click
OK
1.5 Challenge
▐ One of the topics not treated in this exercise is the possibility to ‘Search by
geographic location’.
► Find all the geo data within the administrative unit (province) of
Overijssel using the ?Search by geographic location?.
1.6 Summary
In this exercise you have studied some of the main functions of ArcCatalog.
There are more functions and options in the software then what has been
shown in this short exercise. You now have basic skills in using ArcCatalog: you
know how to preview and manage geographic and attribute data that will be
used for your analyses and GIS applications.
With the topics covered in this exercise you should have the following
skills/knowledge: Browse and explore maps and tabular data, view and create
metadata, manage data sources and use ArcCatalog to access ArcMap.
Introduction to ArcMap
Topics
What is ArcMap, Open an existing map, Explore a Map Document, Data view and
layout view, Select features, Simple layer rendering, Getting help.
Toolbars
ArcMap is ArcGIS’s desktop application for all map-based tasks. These include
data/map analysis, editing and production of maps.
In ArcMap the user can: visualize data, associate symbols to the data, make
selections, analyse data, create data, present data.
39
2.1 Introduction to ArcGis
Fig. 2.1:
Running ArcMap from
the Start menu
In the ‘Start using Arcmap with’ pane, click on the option ‘An existing
map:’ and click OK
Fig. 2.2:
Opening screen of the
ArcMap application
□ In the ‘Open’ dialog box that appears, click the ‘Look in’ dropdown
arrow and navigate to your M: drive and to the exercise 2 data folder
(Exercise02→ArcMapIntro)
Fig. 2.3:
Navigate to the folder
where you stored the
data set for Exercise 2
□ Click on the map you want to open (for this exercise you will open the
map: ‘Intro_to_Arcmap.mxd’ (notice that saved ArcGis maps have the
file extension .mxd). Now click on the Open button.
Fig. 2.4:
Selecting and opening
your ArcMap document
Your screen should now show a map like the one below
Fig. 2.5:
A Map Document
showing the simplified
Enschede dataset
A Map Document stores the representation (maps, graphs, tables) and the
references to the location of the geodata sources displayed.
When you open a Map Document in ArcMap, it will find the associated
geodata sets following the links that are stored in the document. Then it will dis-
play the data using the symbolic representation defined in the document itself.
When you save a Map Document, ArcMap will create a link to all of the
geodata displayed and will save the current representation of the data.
▐ Note that a saved Map Document does not store the spatial data displayed
in it, but only the references to these data! If you rename a dataset or change
the location where it is stored on your hard drive, the next time you open the
Map Document it will not be able to locate the data. (For people familiar with
ArcView, a Map Document in ArcMap is more or less the same as a Project
in ArcView).
The large window currently displaying the simplified map of Enschede is called
the Map Window. Any geographic representation of your data will be displayed
in the Map Window.
You can change the portion of the ArcMap window used to display the
Map Window by clicking and dragging the border between the Table of Contents
(see following paragraph) and the Map Window.
The smaller window on the left side is the Table of Contents. It shows which
geodata sets are loaded in your Map Document.
In the Table of Contents data are organised in layers; in general layers
represent features of the same type such as lakes, districts, roads etc.The Table
of Contents also shows the legend used to display the features of a layer in the
map.
The check box next to each layer indicates whether or not the layer is active
in the map. When the box is checked the layer is visible, when it is un-checked the
layer is hidden.
You can change the portion of the ArcMap window used to display the Table
of Content by clicking and dragging the border between the Table of Contents
and the Map Window.
Toolbars and Menus are meant to organise functions, commands and tools in
groups which include all of the actions related to specific tasks.
The first time you open ArcMap it displays the Main Menu, the Standard
toolbar, and a floating window with the Tools toolbar.
▐ Note that you can arrange the way toolbars are displayed in ArcMap. You
can leave them ‘floating’ as independent small windows or you can anchor
them to ArcMap?s main window.
□ Move the mouse pointer to the Title Bar of the Tools floating window
Fig. 2.6:
Drag the Tools toolbar
window to the edge
of the main ArcMap
window.
Fig. 2.7:
Anchor the toolbar
by releasing the
mouse button once
the floating window
has been dragged to
the edge of the main
window.
Like in ArcCatalog, ArcMap also has many more toolbars then the ones that
are displayed by default.Similarly to ArcCatalog, you can activate or
deactivate toolbars from the Toolbars option in the View menu or from the
Customize... dialog box under the Tools menu: a check mark next to the toolbar
name indicates that it’s visible.
□ In the list of toolbars, check or uncheck the checkbox next to the name
to show or hide a toolbar.
□ For this exercise, make sure that the toolbars ?Main Menu?, ?Standard?,
‘Tools’ and ‘Layout’ are checked.
Fig. 2.8:
Activating toolbars
from the View menu.
► Zoom in or out
[A] □ Click the Zoom Out button on the Tools toolbar [A]
□ Move the mouse pointer over the map and click. The map will be re-
displayed at a smaller scale centred on the point where you clicked.
[B] □ Now select the Zoom In tool by clicking on the [B] button in the Tools
toolbar
□ Move the mouse pointer over the map and click once to zoom-in around
the selected point.
□ To zoom-in, you can also click and drag a rectangle to define the area
you want to zoom to. Try also this other method of zooming.
► Panning
□ Move the mouse pointer over the map; click and drag the pointer to
move the map
▐ Hint: to find the correct button, move the mouse cursor on the buttons of the
toolbar. As you move check the Status bar where a brief description of the
button currently under your mouse pointer will be displayed. The button
you are looking for will display: ?Zooms to the full extent of the map?
□ Once you locate the correct tool, click the Full Extent button.
The map is zoomed to the full extent; all of the features included in the map will
be shown on the display!
□ The Back Extent button allows you to move back through your previous
zoom settings. Once you move backwards you can move forward using
the Forward Extend button. [D] [D]
□ In the Standard toolbar the Map Scale tool [E] allows you to specify [E]
the scale at which you want to see the data on the screen. Just type the
desired scale in the text box (in this case type: 1:100000) and then press
Enter.
□ Try the tool (and investigate scale properties) by displaying the map at
some other scales.
□ Once you are done, zoom to Full Extent [F]. Notice that the value in the [F]
Map Scale tool also changes.
Sometimes you may want to remember a specific location and/or a specific zoom
setting without having to go through the process of zooming in and out.
With ArcMap you can easily set a bookmark to a location and assign to it a
specific name that will help you remember it:
Fig. 2.9:
Zooming to the centre
of Enschede
Fig. 2.10:
Creating a new
bookmark
□ A dialog window appears. Type the name of the bookmark: for example:
‘Downtown Enschede’ and click OK.
Fig. 2.11:
Naming the new
bookmark
You can use your newly created bookmark to zoom exactly to the zoom level you
had when you created the bookmark.
Note that the newly created bookmark now appears as an option of the
submenu.
The display that was showing when you created the bookmark will appear in the
Map window.
If you do not want to make use of the bookmark you created, you can remove it.
► Remove a bookmark
Fig. 2.12:
Opening the Manage
bookmark option
Fig. 2.13:
Removing the
‘Downtown Enschede’
bookmark
There are two different ways to view your map: Data view and Layout view.
Data view is used for displaying, exploring, selecting and analysing data.
Most of the time, when modelling geodata with ArcMap you will be using the
Data View mode.
Layout view is used to show the map as it would be printed on paper. Be-
sides displaying the geodata, in the Layout view you can add all the items that
complete your map, like title, legend, text, scale bars, north arrow etc.
► There are several ways you can switch from Data view to Layout
view:
□ You can select the Layout View option from the View menu
Fig. 2.14:
Switching from Data
view to Layout view
□ Or click the Layout View in the toolbar at the bottom of the Map
window
▐ Note that either ways you can switch back to Data View using the Data
View option. Now the display shows your map as if on a paper page. By
default the orientation of the paper is Portrait. Like in any other Windows
program, you can change the orientation as well as other characteristics of
the paper.
Fig. 2.15:
Opening the Page and
Print Setup dialog.
□ In the popup window [1] click on the checkbox Use Printer Paper
Settings to ensure that what you see on the screen matches what you
will see once you print the map.
Fig. 2.16:
The Page and Print
Setup dialog window.
□ Click on OK and orientation of the page in the layout view will change
to landscape.
Fig. 2.17:
The Layout view with
landscape paper
orientation.
▐ Note that while the paper has switched to landscape you still have a
‘portrait’box around your map. The box represents the Data Frame, the
area of your sheet of paper which is reserved to display map elements.
You can select the Data Frame box, resize it and move it anywhere you
like on the page.
Remember that the Layout View displays your map exactly how it would
appear on paper. When resizing and/or moving your Data Frame, consider
leaving some space on the paper for the other elements of the map (e.g. title,
legend, scale ruler, north arrow etc.).
or
□ Click on the Data View button in the toolbar at the bottom of the Map
Window.
The Table of Contents provides information on the content of your map and the
symbols used to represent it. Besides providing information, the Table of Contents
provides the means to change the content and representation of your map.
We have seen that the data is organized in layers, which contain different
types of information. In your current map you have 5 layers: e_mainroads, e_
railway, e_water, e_businessarea, e_boundary.
When you right-click on the name of a layer, a popup menu will show the options
that are available to the users to manage individual layers.
Notice that there are a number of options available. Most of them will be introduced
later in the course, for the time being select the Properties... option
Fig. 2.18:
The Layer option
popup menu. The
last option of the
menu opens the
Layer Property dialog
window.
Fig. 2.19:
The Layer?s property
dialog window
In this dialog window you can set a number of properties for the selected layer.
Many of the options available will be discussed later in the course.
□ Check the information in each of the tabs at the top of the dialog
window.
▐ You can also access the Layer Properties dialog by double-clicking on the
name of the layer.
Layers are drawn one on top of the other, in a sequence defined by the order in
which they are shown in the Table of Contents; first the one at the bottom and
then the one at the top.
As layers are drawn, they can hide features of previously drawn layers.
To make sure you see the features you want in your map, you may need to re-
arrange the sequence in which layers are displayed.
□ In the Table of Contents, click and hold on the name of the layer e_
boundary.
□ Start dragging towards the top of the Table of Contents. You will notice
that, as you move, a black line will follow the movement of the mouse.
The line indicates the insertion point of the layer.
Fig. 2.20:
Rearranging the
display order of the
layers in the Table of
Contents.
□ Once the black line is at the top of the Table of Contents, release the
mouse button.
The layer e_boundary is at the top of the Table of Contents, it is the last layer
drawn on your display, and therefore covers all the features of the other layers.
Fig. 2.21:
Map windows showing
the result of moving
the e_boundary layer
to the top of the list
□ In the Table of Contents, drag the layer e_boundary down to the position
in between e_water and e_railway.
The e_boundary layer hides the water layer and the business area layer.
□ Drag the e_boundary layer back to its original position (at the end of
the list).
In general, to show data effectively, you should respect the following display
order: first you display polygon feature, then lines and finally points. Thus in the
Table of Contents you will want to have points at the top, polygons at the bottom
and lines in between.
□ In the table of content, click on the box next to a layer’s name to uncheck
it.
The data is still available in the map, but is not shown in the display.
□ In the Table of Contents, click in the gray legend box belonging to the
layer e_businessarea.
Fig. 2.22:
Clicking on the symbol
to access the Symbol
Selector dialog window
Fig. 2.23:
The symbol Selector
dialog window
[G] □ Click the Add Data button on the Standard toolbar [G]
Fig. 2.24:
Adding data to the map
□ The Add Data dialog window opens. Navigate to the folder with the
exercise data on the M:\ drive (e.g. Exercise02-->ArcMapIntro)
When ArcCatalog is opened, you also can add data by dragging the data layer
from ArcCatalog and dropping it in the Map window of ArcMap
Fig. 2.25:
Removing a layer from
the map
► Identify features
□ Click on the feature you want to get information for. (e.g. the bigger
business area at the left of the map)
By default, the Identify Results window displays the information derived from
the attribute table of the top most layer in the map.
Fig. 2.26:
Identify the features in
a map
In the Identify Results window, using the Layers dropdown list, you can change
the layer which will get the focus of your enquiry.
Notice that at the top of the list there are some generic options:
<Top-most layer> Only the attributes of the feature you clicked on from the
top-most layer are displayed
<Visible Layers> The attributes of all the feature under the mouse cursor,
from all the layers that have the visibility checkbox
enabled, are displayed
<Selectable Layers> The attributes of all the feature under the mouse cursor,
from all the layers that are currently selectable (see
paragraph ‘Selecting Features’ and figures 2.29 and 2.30),
are displayed
<All Layers> The attributes of all the feature under the mouse cursor,
from all the layers in your Map document, are displayed
At the end of the dropdown list you find all of the layers that you currently have
loaded in your map document, which enables you to focus your enquiry on one
specific layer as needed.
Fig. 2.27:
Change the layer that
will receive the focus of
the Identify tool
□ When you are done identifying features, close the Identify Results
window.
□ Once you are done exploring the available options, close the attribute
[I] table by clicking on the close button [I] in the upper right corner of the
Attributes window.
Fig. 2.28:
Attributes table window
Selecting Features
Selecting groups of feature is one of the most used functions in a GIS. ArcMap
offers a number of ways to select features from the data set.
You can select features in your map interactively by clicking on them or by
drawing a box that encompasses all the features you want to select.
Alternatively you can also select features in the map by checking the
attributes in their attribute table. Later in the course you?ll also learn to build
queries to select features based on specific criteria.
► Interactive selection
□ From the main menu, click Selection and click Set Selectable Layers...
Fig. 2.29:
Opening the Set
Selectable Layers
dialog
□ In the Set Selectable Layers dialog window, switch off all the layers
except the Water layer. Then close the dialog window.
Fig. 2.30:
Choosing selectable
layers
□ Click the water feature you want to select. Notice that the feature?s
outline turns to light blue to show it is currently selected.
□ Try selecting another feature. Notice that as you click on other water
features, the last one you clicked on will be selected (will have the light
blue outline) while the previous ones will revert to non-selected state.
▐ Note that if you click at a location where no features are present, the one
previously selected will be deselected and no features will be selected.
□ If you want to add features to your selection, hold down the Shift key
of your keyboard while clicking on the features.
□ Open the attribute table of the e_businessarea layer (Hint: if you don’t
remember how to open the attribute table of a layer see the explanation
above Fig. 2.28).
□ Select a feature in the table by clicking at the left of a record. As you can
see the selection is highlighted both in the table and in the map.
Fig. 2.31:
Selecting features
through the attribute
table
□ To select additional features, hold down the Ctrl key of your keyboard
and click at the left of records in the attribute table.
□ If you want to deselect one of the selected features, click on its record
while holding the Ctrl key pressed.
► Deselecting features
□ To deselect all features at once from all layers that have an active
selection you can use the Clear Selected Features option in the Selection
menu.
To learn more about the Basics of ArcMap, refer to the Help menu:
ArcGIS Desktop Help, on the Contents tab: ArcMap, Getting started
with ArcMap.
In some circumstances using the same symbol for all the features in a layer may
be sufficient. Nevertheless, for the sake of clarity, you may want to decide which
symbol to use.
□ Open the Layer Properties dialog box for the e_boundary (Hint: refer
back figure 2.18 if you need a refresher on how to open the Layer
Property dialog window)
Fig. 2.32:
Changing symbols
from the Layer
Properties dialog
window
▐ Notice that under Show the Features --> Single symbol option is highlighted.
This means that all features in the layer are displayed using the same
symbol.
□ Click the big grey button in the Symbol area to change the symbol
characteristics
▐ Notice that the Symbol Selector dialog box that opens is the same one already
shown in Fig. 2.23. As you did then, you can simply select a symbol to show
the extent of the Enschede municipality.
▐ Note that as you change the symbol, the Preview pane will show the symbol
that will be used to display the features once you hit the OK button. At
any time, pressing the Reset button will restore the symbol to its original
parameters.
You may want to have an even higher degree of control of the symbol.
Fig 2.33:
Detail of the Options
pane in the Symbol
Selector dialog window
□ Click the Properties... button to open the Symbol Property Editor dialog
window. In this dialog you can change the individual components that
make up the symbol.
Fig. 2.34:
Symbol Property Editor
□ Try defining the symbol characteristic to look like the one shown here.
▐ Hint: Area symbols are made up of at least two parts: the fill and the outline.
To obtain a dotted line you will need to modify the properties of the outline
part
□ When you are happy with the characteristics of the new symbol, close
all the consecutive dialog windows by clicking on their respective OK
buttons.
□ Once you are back to the Layer Properties window, click the Apply
button to apply your changes and continue working with the Layer
Properties window. Or click the OK button to apply changes and close
the Layer Properties window.
In the Map window, if the show/hide checkbox of the e_boundary layer is checked,
you will see that the symbol you just defined is used to display the features of the
e_boundary layer.
Many times the using a single symbol to display all the features in a layer does not
convey sufficient information. For instance you may want to select the colour of a
feature based on the specific characteristics of that feature.
First, you have to explore the attribute table to see which values can be used to
display the business areas;
▐ Notice that the different areas all have a name (field: Name2_). Let?s use this
field to define the symbols used to display the Business Areas.
□ To instruct the system to use different colours for each feature based
on their attributes, select Categories --> Unique Values [1] in the Show
pane. Notice that the rest of the dialog window changes.
□ From the Value field drop-down box, [2 ] select Name2_. Now click on
Add All Values [3 ].
▐ Note that each name is now associated to a specific colour which will be used
to represent the features with that name once you apply the changes.
Fig. 2.35:
Defining the symbols
based on the feature
attributes
Fig. 2.36:
Symbols defined by
category
□ Once you are satisfied with all the symbols click the Apply button to
apply your changes and continue working with the Layer Properties
window. Or click the OK button to apply changes and close the Layer
Properties window.
In your Map window the features of the E_businessarea layer are displayed
according to the symbols you have defined. Note also that in the Table of Contents
you have a complete list of the new symbols associated with the name of the
business area they now represent.
□ Check the table of contents of the other layers: water, railway and main
roads. Are there any fields that are suitable to display categories? If yes,
try defining the appropriate symbols. If no, change the unique symbol
to match you liking.
□ Alternatively try using the other options (Quantities, Charts etc.) under
the Show pane in the Symbology tab of the Layer Properties dialog
window. For example, data representing areas can be symbolized
quantitatively by using graduated colours, graduated symbols or
proportional symbols.
As you try out various combinations of symbols, you will notice that some
combinations make your map unreadable. At a later stage in the course you
will be introduced to a number of cartographic visualization rules which try to
ensure that the symbols used to represent features are readable and convey the
appropriate information to the user.
To learn more about the Symbolization, refer to the Help menu: Help
contents, ArcMap, Symbolizing your data.
Fig. 2.37:
The Save As? option in
the File menu
□ In the File Name text box, remove the file name displayed (Intro_to_
Arcmap.mxd) and type a new name for the file.
Fig. 2.38:
The Save As dialog
window
The map is saved with a new name. Note that the name shown in the Title bar of
the ArcMap window now reflects the new name.
□ Browse to the folder on the M: drive where you placed the new map,
select it and click Open
▐ In case you changed something in your map, ArcMap will ask you if you
would like to save the current map.
Fig. 2.40:
Display layers
Question 2.1
Discuss with your colleagues what geographic phenomena each of the
seven layers represent and identify the data type of the layer. You can fill in
the information in the table below.
Elevation
Transportation
network
Administrative
boundaries
Spectral
Radiance
Spatial policy
plan
Built up areas
Interestingly, you have realised that the same phenomenon can be represented
with different data type. Let?s investigate the type of data that were used to store
the information in the various layers.
Question 2.2
Discuss with your colleagues what computer representation is used to
represent the geographic phenomena of each of the seven layers.
Computer representation
Vector Tessellation
Layer name Point Line Area Regular Irregular
Height point
Centre lines
Neighborhood
Buildings
Ikonos satellite
image
Height
Question 2.3
Some of the above layers are Tessellations. Can you write an alternative (or
more descriptive) name for its computer representation?
When you move the mouse pointer on a button or on a menu option a brief
description of the functions performed by the option is displayed in the status bar
of the ArcMap window.
□ Open a menu and move the mouse pointer on the various options.
Notice how in the lower left corner of the ArcMap window a brief
□ Move the mouse pointer on the buttons of the toolbars. Notice that the
Status bar displays a brief description of the command.
□ If you need to find out the name of a button on a toolbar, move the
mouse pointer on the button and leave it there for a few seconds. A
popup window with the name of the button will appear.
The ‘What’s this?’ button provides a quick way to access basic information on
buttons, commands, and menu options.
□ Click the ’What’s this?’ button in the Standard toolbar [K] [K]
□ A popup window will provide the basic explanation of what the specific
tool does.
□ The Index tab shows the help topics by key word. In the textbox at
the top of the frame you can type the keyword of the subject you are
interested in
□ The Search allows you to perform free text searches in the help
documentation. In the textbox at the top of the frame you can type the
words or sentence you are interested in.
□ To read about specific topic under anyone of the three tabs, double click
on its heading.
Directly from the Help menu you can access a number of web sites which can help
you understand the basics of GIS and the specific of ArcMap.
□ Click the Help menu, select the ESRI Training and click on Virtual
campus and click ArcGis Desktop Help
Fig 2.41:
Extra training
□ In the Virtual Campus web page, register as a new user by following
the Create Global Account link.
□ The registration is free and gives access to the Virtual Campus web site
where you?ll find a few free tutorials.
2.8 Summary
In this exercise you learned the basics of ArcMap: how to start the application and
open a Map Document, how to move around the map and explore your data, how
to define basic symbology for your map and where to find additional help when
you require it.
Remember that the goal of this exercise is to get you started and not to cover
all the functionalities and tools of ArcMap.
While the most basic functions where highlighted there is a lot more to be
discovered. Good search!!!
2.9 Challenges
► Challenge:
Try to discover more about ArcMap (as much as you can) using the above
listed methods to get Online Help.
Topics:
3.1 Introduction
In this exercise you are going to learn how spatial and attribute data is stored in
GIS. Then you will practice how to enter spatial and attribute data into a GIS.
During this practical you will work with a ‘Personal Geodatabase’. A ‘Personal
Geodatabase’ is a database that stores geographic information. It is a new data
model that was introduced by ESRI in the ArcGIS software.
▐ There are two types of Geodatabases, the Personal Geodatabase and the large
(ArcSDE) Geodatabase. Personal Geodatabase stores data in MS Access
database. The large Geodatabase stores data in a separate Oracle, SQL
server, Informix or DB2 database that is connected to ArcGIS via ArcSDE
(Spatial data engine). In this course we will only work with the Personal
Geodatabase.
75
3.1 Introduction
Data necessary to complete this exercise can be found in the Blackboard course
03: Principles of GIS (2005) under: Assignments/Exercise 3: Data entry and
Management/Exercise data.
Data entry and management are tasks that complement all GIS work. Data has to
be entered and stored in a proper digital format (in the computer) to apply any
GIS analysis. Different methods are used for data input. Data can be recorded
directly from the field in a digital format by using devices as Global Positioning
Systems (GPS) and Satellite Imagery. Data also can be input from analogue format
(hard copy) by mean of digitising or scanning.
Spatial data and its attributed data are stored in the computer in different
ways depending on the GIS software in which it was created. However most
commonly it is arranged in the form of tables.
Toolbars
In this exercise you will use both ArcCatalog and ArcMap. You can work with both
applications simultaneously (having both opened in the desktop) however it is
recommended for students who are not quite familiar with windows applications
to only open one application (ArcCatalog or ArcMap) at a time.
▐ When editing a feature class within ArcMap, always close ArcCatalog and
vice versa.
Below you see the interface elements that you will use quite often during the
following exercises:
Fig. 3.1:
Toolbars and catalog
tree
Fig. 3.2:
Editor toolbar
From the Editor Toolbar you can select under More Editing Tools the Topology
toolbar:
Fig. 3.3:
Topology toolbar
Fig. 3.4:
Catalog tree You are expected to see the following in your Catalog tree:
In the Catalog tree under the ‘dataentryex’ folder you should see a barrel icon that
represents a Personal Geodatabase. The concept “Geodatabase” can be simply
explained as a container (database) that stores data. Inside the Geodatabase you
can see two feature classes (roads and buildings). Feature classes are collections
of geographic features that share the same geometry type (point, line or polygon),
attributes and spatial reference. Physically feature class information is stored in a
collection of tables inside the database.
□ Click on the ‘buildings’ feature class in the Catalog tree. Then click on
the Preview tab.
You will see the spatial representation of the building blocks in the area just to the
west of ITC.
Question 3.1
Look carefully at this data and answer
How many polygons does this feature class have?
Now you will view the Table that stores building’s feature class information.
You should see the table that stores the polygon features of the ‘buildings’ feature
class. Each polygon feature is represented by a row (record) in this table. The
spatial representation of buildings (X,Y coordinates that represent the polygon
geometry) is stored in the “shape” field. Other attribute information (e.g. ID, Area,
length, type) is stored in additional fields.
Question 3.2
What is the attributed data to the buildings in the ‘buildings’ feature class?
Question 3.3
Count the number of records in the table.
Is the number of records in the table equal to the number of polygons that
you counted before?
Yes - No .
Question 3.4
Use the previous steps to explore the geometry and the table of the ‘roads’
feature.
c. From the table preview, how many records exist in the ‘roads’ feature
class table?
► Close ArcCatalog.
The Personal Geodatabase is a relational database that contains tables to store different
spatial and attribute classes (entities). For example you can have a table for road
features, another table containing land parcels …etc. The Personal Geodatabase that
we saw in the previous section was originally a Microsoft Access Database.
▐ The Personal Geodatabases can be read by multiple users but only edited by
one and its maximum size is 2GB. Personal Geodatabase are useful for storing
comparatively small datasets. There is another type of Geodatabase, Multi-
user Geodatabase that can store large datasets and provide the capability of
multi-user editing. However in these exercises we will only use the Personal
Geodatabase.
□ From File menu select Open. Open window will appear. Navigate to
the ‘dataentryex’ folder and select ITCwest.mdb file and click Open.
□ Click on the tables tab to see the tables that ‘ITCwest’ database
contains.
You will find that the Personal Geodatabase is a simple MS Access relational
database where the geometry of spatial features and their attributes are stored
in tables. You will also find other tables in the Personal Geodatabase that contain
information on different properties of the database (e.g. spatial extents of feature
classes, relations between the classes).
Fig. 3.5:
ITCwest database in
Microsoft Access
For a better data management it is more appropriate to store all relevant data in
one Geodatabase. However, sometimes you might need to make a subset of your
data (e.g. if you want to give a colleague or a customer a spatial layer from your
Geodatabase). In this case you have to make a new Geodatabase and copy feature
classes from the original Geodatabase to the new Geodatabase.
Fig. 3.6:
New Personal
Geodatabase in
Catalog tree
As you see the new Personal Geodatabase has no + icon to the left of it which
means that it is empty.
□ In the Catalog tree right click on ‘buildings’ feature class. A menu will
appear, choose Copy.
You will find that the ‘buildings’ feature class was transferred from ‘ITCwest’
Personal Geodatabase to ‘myITC’ Personal Geodatabase.
► Repeat the same process to transfer the ‘roads’ feature class to your new
Personal Geodatabase.
▐ Now you can see that ‘buildings’ and ‘roads’ feature classes are directly
located under the ‘myITC’ Geodatabase. This type of feature class is called
stand-alone feature class. Each stand-alone feature class can have its own
independent spatial reference (coordinate system and geographic location).
If you have several feature classes that share the same spatial reference then
you can group them into a feature dataset, however you cannot group feature
classes with different spatial reference in one dataset. Storing feature classes
in a dataset enables the topological integrity between these feature classes as
will be discussed later in the exercise.
In this part you will create a new feature dataset inside ‘myITC’ personal
Geodatabase, export the stand alone feature classes to this data set and delete the
stand alone.
□ To define the spatial reference of the new dataset clicking the Edit button.
You will find the button in the bottom right part of the window. (You
will learn more on spatial reference in the map projection exercise).
Fig. 3.7:
My-itc-dataset
Now you should see the new dataset under ‘myITC’ Personal Geodatabase:
□ Right click on ‘building’ feature class. A menu will appear, choose Export
- to Geodatabase (single). ‘Feature class to Feature class’ window will
open (see figure below). (By using the option Export to Geodatabase
(multiple) it is possible to export several feature classes at once.)
□ Select the folder button to the right of the Output location text box and a
browser will open. Browse your folders until you reach ‘my-itc-dataset’,
select it and click Open.
□ Click Ok!
Fig. 3.8:
Export feature class to
Geodatabase window
After the completion of this process you will be able to see the exported feature
classes in ‘my-itc-dataset‘ dataset (see figure below):
Fig. 3.9:
The exported feature
classes in ‘my-itc-
dataset‘ dataset
By putting the ‘buildings’ feature class on top of a satellite image of the same area
it can be seen that not all the buildings visible in the satellite image within the
ITC west area (the area bounded by the dashed thick lines in figure below) are
included in ‘buildings’ feature class. In this section you will open this satellite
image as a background layer in ArcMap and on screen digitise all the remaining
building blocks to the ‘buildings’ feature class.
Fig. 3.10:
View shows a satellite
image for the area (the
delineation of ITC west
area) and the existing
building blocks in the
‘building’ feature class
In order to open two layers (feature class, image etc.) of the same area
on top of each other they should have the same spatial reference. Refer
to Spatial Referencing section in the Principles of GIS text book (chapter
4).
□ In ArcCatalog press the launch ArcMap button. Check the New Empty
Map button in the ArcMap start window.
□ Close ArcCatalog.
□ Use Add Data button to add the ‘buildings’ and ‘roads’ feature class
and the ‘subaps98_rectified’ satellite image to the map. You will find
the image in ‘dataentryex’ folder.
□ In ArcMap from the View menu choose Toolbar and check the Editor
toolbar. Now you will see editor toolbar with the rest of the activated
toolbars (see figure below).
□ In the Editor toolbar click the Editor button and choose Start Editing.
Now you can see that most of the tools in the editor toolbar are
activated.
Fig. 3.11:
Editor toolbar
Now you should see the following illustrated on your computer screen:
Fig. 3.12:
Satellite image and
‘building’ feature class
displayed in ArcMap
► Start digitising
□ Make sure that ‘buildings’ feature class is the target layer. If not then
choose buildings from the Target dropdown menu.
□ Make sure that the task displayed on Task drop down menu is Create
New Feature.
[B] □ On the Editor toolbar, Click the Sketch Tool button [B] and start
digitizing the two adjacent buildings that are not included in ‘buildings’
feature class. Draw polygons by clicking at the consecutive vertices
of the polygon and double click to add the last vertex and finish the
polygon (see figure below).
Fig. 3.13:
Drawing new polygon
After the completion of the two polygons, visually try to check if the shared
boundaries of the polygons are completely on top of each other by zooming in to
the shared boundaries.
In the following section you will be asked to re-digitise the previously digitised
two polygons but this time you will use the snapping tool to ensure adjacency of
the polygons. Snapping allows you to start drawing from an exact location (e.g.
vertex or any location on an edge) of an existing feature. This tool is very helpful
in case of digitising connected features where a new digitised feature can be
snapped to the vertex, edge or end of another existing feature. Different snapping
tolerance can be assigned for snapping. The tolerance defines the distance within
the feature will be snapped. For example, if a snapping tolerance of 10 map units
is assigned: then whenever you digitise a vertex or point within this tolerance
distance (e.g. 8 map units) from an existing vertex the two vertices will be joined
(see illustration below).
Fig. 3.14:
Snapping of vertices
□ In the Editor toolbar click the Editor button and choose Stop Editing,
the save window will open. In the save window choose No for saving
edits.
□ Start editing!
□ Make sure that the ‘buildings’ layer is still selected in the Target
dropdown menu.
□ In the Editor toolbar click the Editor button and choose Snapping, a
new window will open. Check the Edge checkbox to the right of the
buildings (see figure below).
Fig. 3.15:
Snapping window
□ In the Editor toolbar click the Editor button and choose Options, a new
window will open. Click on General and Enter 8 in the Snapping Tolerance
textbox and make sure that it is in map units (see figure below).
Fig. 3.16:
Options Window
□ Use the Sketch Tool button to digitise the two polygons again.
Fig. 3.17:
Two adjacent polygons
with a complex non-
linear border
For this reason you will redigitise the two polygons by using the Auto Complete
Polygon tool. Auto Complete Polygon tool allows you to draw adjacent polygons
without drawing the shared borders again.
► Use the Auto Complete Polygon tool to re-digitise the two previously
digitised polygons
□ Start editing!
□ In the Editor toolbar, from the Task dropdown menu select Auto-
Complete Polygon.
□ Select the Sketch Tool button then click on the meeting point between
the two buildings (point A or B), then digitise the polygon by clicking
on the consecutive vertices and final double-click when you reach the
other meeting point (point A or B) (see figure below).
Fig. 3.18:
Auto complete
polygons
Now you will add attribute data (land use information) to the newly digitised
polygons
□ Use the Edit Tool [C] button to select one of the newly digitised polygons [C]
and click the Attributes button [D]. The Attribute window will open, in
that window click on the value field of landuse and type ‘commercial’ [D]
then close the window.
□ Use the Identify tool [E] on the new polygon and you will see that the [E]
land use attribute of this polygon became commercial.
▐ It is very easy to make data entry mistakes in entering attribute data. You
can enforce attribute data integrity in the Geodatabase by setting an attribute
domain. Attribute domains define the data that can be entered. There are two
types of attribute domains. The first is the range domain, which is mainly
used for numbers and it is defined by setting the minimum and maximum
Fig. 3.19:
Attributes window
► Use the previously practised editing tools to digitise all the missing
polygons and add their attributes. You could identify the land uses by
a field check!
□ In the Editor toolbar click the Editor button and choose Stop Editing,
save window will open. In the save window choose Yes for saving
edits.
Geodatabase Topology
Question 3.5
Identify which of the two topological models for area representation
described in the book best matches the description of the Geodatabase
topology:
The previous version of ARC GIS (Version 8.3) introduced a new set of editing tools
that enable users to construct and maintain user-defined topological relationships
within a Geodatabase. (Until then topology was a feature of the ArcInfo coverage
data model). This new tool assists to analyse the topological integrity of data.
In many cases you might make a mistake in digitising or you might get a ready
dataset, which is not topological integrated. Topology offers a set of integrity
rules that defines the behaviour of spatially related geographic features, it enables
you e.g. to edit shared geometry or helps you to discover errors in the spatial
relationships based on rules you can set.
Let’s assume you have received a Geodatabase from somebody and you are
not certain if the data contain errors.
► First we will display the data of the new Geodatabase you have
received
□ Zoom to the two adjacent building located west of ITC (see figure
below). You should see the small gap between the buildings, which is a
digitising error.
Fig. 3.20:
A case of topological
error (borders of two
adjacent polygons do
not coincide)
► Creating a new topology
□ The New Topology window will open, than click Next. In the next
window enter the Name ‘Topology’ and for the Cluster Tolerance 0.09
(see figure below). (The cluster tolerance indicates the distance range
in which vertices are considered coincident, within this tolerance they
will snap together.) Than click Next.
Fig. 3.21:
Cluster Tolerance
□ In the next window you have to Select All three feature classes (buildings,
roads and water areas) (see figure below). Than click Next.
□ Now you have to define the Ranks. The rank controls how much the
features in that class can be “moved” in relation to features in other
classes when the topology is validated (the higher the rank the less the
features will move during the validation process).
□ Enter 3 for the Number of Ranks and assign to the roads the rank 3, to
the buildings the rank 2 and to the water areas the rank 1. Than click
Next.
□ Now you will Create Rules for validating the topology. Click the button
Add Rule. For the first rule you will select the ‘buildings’ and define
that they ‘must not overlap’, than click Ok. For the second rule select
again the ‘buildings’ and define that they ‘must not overlap with’ the
‘water_areas’, click Ok. And than click Next. In the last window click
Finish.
□ Now the new topology will be created. In the window that appears
accept to validate the new topology, by clicking Yes.
Fig. 3.22:
Select Features
► After creating the topology we will investigate what has happened with
the data.
□ Open ArcMap and add the before created topology to the map. Click
Yes in the window asking ‘adding all feature classes participating’ (now
the roads, buildings and water areas will be added).
□ The red areas in the display are indicating potential errors (see figure below).
Zoom in to the areas of the errors and try to understand the problems.
□ Zoom to the two adjacent buildings (figure 3.20). They do now coincide
because we have entered 0.09 for the cluster tolerance.
▐ The cluster tolerance has to be selected carefully. A big tolerance will cause
many vertices to snap together this can modify the shape of the features
completely.
Fig. 3.23:
Topological errors
□ In the Editor toolbar click the Editor button and select Start editing. Go
again to the editor toolbar and choose More Editing Tools and select
Topology, the new Editing Tools will open.
□ Click on the Error Inspector button, a new window will open. Go to the
drop down menu right of Show and select ‘buildings must not overlap
with water areas’ (see figure below). Uncheck the button Visible Extend
Only. Click on the button Search Now.
Fig. 3.24:
Error Inspector window
□ One error will appear in the list. Right click on the error in the list and
select zoom to (see figure below): you will see that one building was
accidentally digitised on a water area.
□ Now select the rule ‘Must be larger than the cluster tolerance’. You will
find two small polygons, which are smaller than the tolerance (they are
also errors).
[F] □ Select the Fix Topology Error Tool [F] and right click to the error, choose
from the menu Delete.
□ Try to correct the remaining errors (you could use the satellite image
for ground truth data).
Fig. 3.25:
Zoom to Error
► Change the position of the boundary between the two adjacent buildings
shown in the figure below
□ Start editing.
□ Zoom in to the two adjacent buildings (figure below) and make sure
that only these two buildings that now share the boundary are visible
in the map.
□ Click on the first tool Map Topology [G], select the building layer [G]
and enter 0.09 for the cluster tolerance and click OK. Now select the
Topology Edit Tool [H] then click on the boundary between the two
polygons, you will see that the colour of the boundary has changed to [H]
magenta (figure below).
□ Place the cursor exactly on the boundary and click the left button the
mouse. Keep the mouse button clicked and drag the boundary a little
bit to the west.
□ Stop editing and save the edits and close ARCMap and save your
ArcMap document.
Fig. 3.26:
Editing boundaries
Now you can see that the boundary lines of both features have moved together to
the new position.
Create a new point feature class for bus stops and use X,Y Coordinates to add bus
stops to (point features) to the feature class.
In this part you will create a new point feature class to store two bus stops
in the ITCwest area. Two main elements should be considered in the creation
of a new feature class, the first is the shape type (point, line or polygon) and the
second is the spatial reference of the feature class (you will learn more on spatial
reference in the projection exercise).
▐ When creating a new feature class in a dataset the new feature class will take
the same spatial reference of the dataset by default. However spatial reference
has to be assigned to stand alone feature classes.
□ New window opens. In this window you can assign the shape type
(point, polygon or line) and the spatial reference of the new feature
class. Click on the SHAPE field name.
□ In the Field properties you will find that Polygon is assigned to the
geometry type as default. Click on polygon, dropdown menu will
appear. Choose Point from the dropdown menu.
□ In the Field Properties you will find that Spatial Reference is set to
Rijksdriehoekstelsel_new. You will not change this spatial reference
□ Click Finish.
Now you can see that you have a new feature class called ‘busstops’ in your ‘my-
itc-dataset‘ dataset.
Question 3.6
Why did you not assign new spatial reference for the ‘busstops‘ feature
class?
In ArcCatalog preview the ‘busstops’ feature class, you will find that it is empty.
In this part you will add point features to the ‘busstops’ feature class by
entering already known coordinates
□ Use Add Data button to add the ‘busstops’ feature class and
□ Start editing.
□ Make sure that the task displayed on Task drop down menu is ‘Create
New Feature’.
□ Click the Sketch Tool Button then right click on the map screen; a
window will appear. Choose Absolute x,y; a small window will appear.
Type 257134.30 and 471885.22 in the X and Y textboxes respectively
then press Enter button on you computer keyboard.
□ Repeat the same operation for the other bus stop with the following x,y
coordinates (257171.48,471881.15).
3.4 Summary
In this exercise you learnt how to manage a Personal Geodatabase and enter
geographic and attribute data to the Geodatabase. You are now able to:
● Create Geodatabases and datasets
● Copy feature classes from one Geodatabase to another
● Delete feature classes from a Geodatabase
● Edit the geographic features in feature classes
● Validate the topological relation within a Geodatabase
● Create new feature classes
● On screen digitise geographic features
Many other options exist regarding the management, data entry and data editing
in ArcGIS. However this exercise only covered the topics that are essential for the
understanding of the principle of GIS. It is expected that many additional skills in
using ArcGIS will be obtained throughout the course.
3.5 Challenges
► Try to enter the missing road segments within the ITC west area in the
‘road’ feature class by using the appropriate editing tools.
► With reference to the ArcGIS online help try to practice on the other
editing tools available in the editing toolbar.
Using toolboxes
Topics:
What are toolboxes, how to use system toolboxes in ArcMap and ArcCatalog,
Toolboxes and Menus, creating your own toolboxes, adding system tools to new
toolboxes.
4.1 Introduction
In this exercise we will learn some more about a specific functionality in your
ArcGIS software – toolboxes. Toolboxes will help you to run all kinds of operations
on your data, and you will need them in the exercises to come. Up till now you
used buttons and menus to access the ArcGIS functions. The functionality in
toolboxes goes beyond the functionality of menus. Toolboxes can give you access
to all operations you can perform in ArcGIS and to additional functionality added
by yourself.
▐ Note that there is no data necessary to complete this exercise. Data necessary
to complete the challenges can be found in the Blackboard course 03: Principles
of GIS (2005) under: Assignments/Exercise 4: Using toolboxes
Shortcut:
1. Run the system tool “Create Personal GDB” to create a new geodata-
base.
2. Create a new custom toolbox in this geodatabase (name “Mytools”).
3. Add a toolset called ProjectA.
4. Add the system tool “Intersect” to this toolset.
5. Make sure that your new toolbox appears in the toolbox list.
99
4.2 Step by step exercise
ArcToolbox is an integrated part of ArcMap and ArcCatalog. You can open the
toolboxes just like you open a menu.
► Open ArcMap with a new Map document and open the toolboxes
□ When ArcMap is not yet open, open ArcMap with a new (empty) map
document
Fig 4.1:
ArcMap with the
toolboxes closed.
When you explore the content of ArcToolbox a little further you will see that
ArcToolbox contains several different “Toolboxes”, for example boxes containing
‘3D Analyst Tools’, ‘Data Management tools’ etc.
Question 4.1
Do you have the same (number and names) toolboxes as shown in fig 4.2?
Fig 4.2:
ArcMap with toolboxes
visible.
Fig 4.3:
Toolsets in a toolbox,
and tools in the toolset
□ Click on the + sign before the ‘Fields’ toolset to see the tools
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 101
4.2 Step by step exercise
Question 4.2
b. What is the difference between the database tools and the workspace
tools?
Executing a tool
Via various tools you can access the functionality of ArcGIS. They have a similar
function as menus and buttons.
Tools can be executed by double clicking, or you can right click on the tool
to open the context menu and then select open.
Executing a tool is very much like running an option from a menu. You will
see a dialog where you can enter all necessary information to run the tool.
You will now test this out by running the “create personal geodatabase” tool.
► Execute a tool
□ Double click the ‘Create Personal GDB’ tool to execute it and to create
an Access database.
Fig 4.4:
Create Personal GDB
tool dialog
□ Select an output location on your m-drive. You can use the browse
button, or type the location.
□ Click OK
The progress window that appears will tell you when the operation is finished.
Fig 4.5:
Progress dialog
As long as the operation is running you will see a ‘cancel’ button. When it has
completed, this button will become the ‘Close’ button.
□ Wait until your geodatabase is created and then close the progress
dialog.
Finding tools
Fig 4.6:
Tabs on the toolbox
window
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 103
4.2 Step by step exercise
The ‘Favorites’ tab contains all tools that are available to you. The ‘index’ tab
allows you to see the tools in alphabetical order and to find tools.
□ Type the keywords: “Create Per….”, to locate the tool that you have
used in the previous task.
□ Select the tool and click the ‘Locate’ button. This will bring you to exact
location of this tool.
□ Add field
□ Intersect
The “Search” tab has even more search possibilities. It allows you to type in a
keyword or a partial name.
So far, we have only used system toolboxes, these are toolboxes already included in
your software when you buy it. One of the powerful new possibilities of toolboxes
is that you can create your own ones. You may want to do this for example when
you are working on a project and you want to group all the tools you use together
for easy access.
□ You can create a new toolbox by right clicking in the toolbox window
and selecting new toolbox.(Fig. 4.7)
Your toolbox will then be stored as a .tbx file in the ‘MyToolboxes’ folder. You
can also store the toolbox in a geodatabase. The toolbox will then be stored as a
table.
You will now create a new toolbox with your own name. This toolbox will be
stored in the personal geodatabase you created earlier in this exercise. To store a
new toolbox in a geodatabase, the toolbox has to be created in ArcCatalog.
Fig 4.7:
Create a new toolbox
□ Right click to open the context menu and select New, Toolbox
Fig 4.8:
Create a toolbox in
Geodatabse
The toolbox you created is still empty. There are two types of tools you can add to
a toolbox, System tools and Custom tools. Systems tools are tools that are already
included in one of the existing toolboxes and are provided by your software. A
reason to place system tools in a custom toolbox is to group tools together. It is
also possible to add new tools (created by you) to your toolbox. These custom
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 105
4.2 Step by step exercise
tools can be models, scripts, or tools you built with ArcObjects. For now we will
only focus on adding system tools.
□ Make the contents of your Geodatabase visible and confirm that your
new toolbox is in the geodatabase
Fig 4.9:
Toolbox in
Geodatabase
□ Right click on your ‘MyTools’ toolbox to open the context menu and
select New, Toolset
Fig 4.10:
Add toolset
□ Select your new toolset, right click to open the context menu and select
Add, tool
Fig 4.11:
Add tool
□ Click OK
Fig 4.12:
Select tool
When you want to practice some more, you can add a few more tools on your
own.
Show toolbox
When you look closely at the toolbox window in ArcCatalog you see the list of
available toolboxes and your own toolbox “Mytools” does not appear in this list.
When you open ArcMap, your tool also does not appear in the toolbox list of
ArcMap. We will have to make sure it is added correctly so that you can use it
every time you open either ArcCatalog or ArcMap.
□ Select your toolbox and right click to open the context menu.
Your own tool should now be visible in the Toolbox list of ArcCatalog (like in Fig.
4.14).
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 107
4.3 Challenges
Fig 4.13:
Add toolbox
Fig 4.14:
Custom toolbox
Question 4.3:
Is your toolbox visible?
4.3 Challenges
► In this exercise you learned how to execute a system tool. Can you also
execute a custom tool? Open the Map document provided in your data
and run the model.
► Create a new toolbox called “Challenge Tools” and add the following
system tools: ‘Feature Class to Shapefile (Conversion tool), buffer and
frequency statistics.
4.4 Summary
In this chapter you practiced your skills in using the dockable ArcToolbox window
in ArcMap and ArcCatalog. You are now familiar with the concepts toolbox,
toolset and tool. You are now able to:
● Use system toolboxes
● Run system tools form toolbox
● Create a new custom toolbox – toolset
● Add a system tool to a custom toolbox
● Make a new custom toolbox visible in the toolbox window
You do not yet know the full functionality of toolboxes but you have obtained
enough knowledge to learn while going through the next exercises.
Some functions like adding scripts will be fully explored during later
modules.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 109
Exercise 5
Spatial referencing
Topics:
5.1 Introduction
In this exercise you will learn how to set up a coordinate system, and apply various
coordinate transformations for vector and raster data.
Data necessary to complete this exercise can be found in the Blackboard course:
03: Principles of GIS (2005) under:
Assignments/Exercise 5: Map projections and coordinated transformation/
Exercise data
Shortcut:
111
5.2 Projection change
► Start-up
□ Start ArcMap.
Question 5.1:
Check the map units and coordinate system (data frame properties)
Map units
Coordinate system:
Fig 5.1:
Coordinate system
dialog box
□ Click Ok
Fig 5.2:
Warning: geographic
coordinate systems
(geodetic datum’s)
differ for one or more
data sources
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 113
5.2 Projection change
This warning indicates that the geodetic datum (geographic coordinate system)
of the selected coordinate system and the assumed coordinate system are not the
same. Mercator (world) uses the WGS84 while the assumed coordinate system
uses the North American Datum. ArcMap will use a default datum transformation.
That’s fine, at small scales datum transformations are of no importance!
▐ Note that the coordinates have changed to x,y coordinates with map units
in meters and a map scale is also given now. The world map inside the data
frame is projected towards the Mercator map coordinate system.
□ Mollweide ( world )
□ Robinson ( world )
□ Stereographic ( polar )
▐ For all coordinate systems accept the given projection parameters (geodetic
datum, central meridian, reference latitude, false easting, false northing,
standard parallels, etc).
Question 5.2
For each map coordinate system note down it’s projection class and property:
(refer to http://kartoweb.itc.nl/geometrics)
Mercator: class:
property:
Mollweide: class:
property:
Robinson: class:
property:
Stereographic: class:
property:
Question 5.3:
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 115
5.3 Set-up a custom coordinate system
Question 5.4:
Ghana adopted the Transverse Mercator with the following characteristics:
● Origin is at the point where the central meridian intersects the 40 40’
parallel, all North coordinates are positive. To avoid negative East
values the origin is given false easting of 900 000 ft. (1 ft. = 0.3048m.)
● The reference datum is the Leigon based on the Clark 1880 ellipsoid
► Start-up
□ Select <custom>
Fig 5.3:
Coordinate system
dialog box
▐ To set the Leigon datum select it from the list of predefined Geographic
Coordinate Systems.
□ Zoom in at Ghana.
□ Locate the origin where the coordinates are 0, 0. Notice that the origin is
located South-West of Ghana to achieve positive X and Y coordinates.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 117
5.3 Set-up a custom coordinate system
Question 5.5
a. Select a point in the center of Ghana and note down it’s map (projection)
coordinates.
Map coordinates:
X: ____________________m
Y: ____________________m
□ The feature dataset should have assigned the map coordinate system of
your country.
□ Select the coordinate system of your country from the list of predefined
coordinate systems (projected coordinate systems >national grids).
▐ If the coordinate system information is NOT stored with the data you can
define a vector or raster data file’s coordinate system information if it is
missing with the Define Projection tool in the ArcToolbox (refer to section
5.5)
► Start-up
▐ So far, we first added the data layers and then specified the coordinate system
for the data frame. It’s more appropriate to specify the coordinate system for
the data frame before adding the data layers.
□ Click Apply (see the change in the current coordinate system box).
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 119
5.4 “On the fly” projection change
Fig 5.4:
Coordinate system
dialog box
□ Switch to the General tab and observe the change in Map and Display
units.
□ Click Ok.
Fig 5.5:
Missing spatial
reference information
window
▐ The photograph has been rectified and the Dutch coordinates are stored in the
data file header, so ArcMap can place the photograph at the correct location
in the data frame. The warning indicated that photograph can NOT be
reprojected since the projection information for the photograph is unknown,
because there is no coordinate system information file (.prj) defined for this
photograph (refer to section 5.5)
□ Click Ok.
□ Double Click the PhotoRD.sid data layer to open the layer properties
and go to the Source tab.
Fig 5.6:
Data source dialog box
Fig 5.7:
Coordinate system
dialog box
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 121
5.4 “On the fly” projection change
▐ The roads are stored in Dutch coordinates and ArcMap can place the roads
at the correct location in the data frame without a reprojection.
□ Double Click the roads symbol and choose a more noticeable symbol.
□ Double Click the roads layer to open the layer properties and go to the
Source tab.
Fig 5.8:
Data source dialog box
□ Add data with another coordinate system to the projected data frame.
Fig 5.9:
Warning: geographic
coordinate systems
(geodetic datum’s)
differ for one or more
data sources
The warning indicates that the geodetic datum (geographic coordinate system)
of the current coordinate system and the main roads are not the same. The main
roads layer uses WGS84 coordinates, whereas the map frame refers to the Dutch
geodetic datum (GCS_Amerfoort in ArcMap). ArcMap will choose automatically
a suitable datum transformation, if applicable.
□ Click Ok.
□ Double Click the main roads symbol and choose a more noticeable
symbol.
Fig 5.10:
Alignment problems
□ Double Click the main roads layer to open the layer properties and go
to the Source tab.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 123
5.4 “On the fly” projection change
Fig 5.11:
Data source dialog box
Fig 5.12:
Coordinate system
dialog box
▐ Notice that the main road layer is now matching! It appeared that the datum
transformation chosen by ArcMap has not been applied properly (a possible
program bug)
Fig 5.13:
Geographic coordinate
system transformations
window
▐ If your data layers still don’t match it might be that the Rijksdriehoekstelsel
is not assigned as the current coordinate system. Please check the coordinate
system and reassign the correct coordinate system (Rijksdriehoekstelsel)
► Add data with another coordinate system to the projected data frame
Fig 5.14:
Warning: geographic
coordinate systems
(geodetic datum’s)
differ for one or more
data sources
□ Double Click the bldUTM layer to open the layer properties and go to
the Source tab.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 125
5.4 “On the fly” projection change
Fig 5.15:
Data source dialog box
Fig 5.16:
Coordinate system
dialog box
► Assign the following map coordinate system to the data frame: UTM
Zone 31N with the European datum 1950 (Projected Coordinate Systems
> UTM > Other GCS > European Datum 1950 UTM Zone 31N)
▐ Notice that the data layers are reprojected “on-the-fly” to the newly
assigned coordinate system, except for the data layer with the rectified aerial
photograph. This is obvious! The coordinate system information for the
photograph is defined as Unknown, so no reprojection can take place.
Fig 5.17:
Coordinate system
dialog box
With the Define Projection tool you can define a vector or raster data file’s
coordinate system information if it is missing or modify a data file’s existing
coordinate system information.
With the Project tool you can convert a vector data file from one coordinate
system into a different coordinate system.
Select the input dataset to assign a coordinate system information file (.prj):
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 127
5.5 Coordinate transformations of vector data files
Fig 5.18:
Toolbox
▐ The GPS(wgs84) shape file contains a track of GPS positions somewhere near
Enschede. The GPS positions were captured with a GPS receiver and converted
to a shape file. The co-ordinates of the GPS positions are in WGS84 coordinates.
Fig 5.19:
Define projection
wizard window
□ Select > Geographic Coordinate Systems > World > WGS1984.prj >
▐ The message “datum conflict between map and output” indicates that your
current data frame has a different coordinate system than the transformed
data file
Convert a data file from one coordinate system into a different coordi-
nate system.
After defining the coordinate system by a PRJ file you can transform the data
file into another data file with a different coordinate system. The output data file
should have a defined coordinate system and PRJ file.
For example let’s convert the GPS data file with WGS84 coordinates into a
new data file with Dutch map coordinates.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 129
5.5 Coordinate transformations of vector data files
□ Click [B] to define the coordinate system for the output dataset.
Fig 5.20:
Project window
► Create a new map (or use the map Enschede.mxd) and add the GPS(RD).
shp file. Review the coordinate system and overlay it with RoadsRD.
shp (TOP10vector road data from the Dutch Topographic Survey).
Question 5.6
What could be the reason for the alignment problem between the
TOP10vector roads and the GPS track?
► Start-up
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 131
5.6 Map coordinate system selection
► Specify the selected map coordinate system for the data frame.
□ Select the selected map coordinate system from the list of Continental
coordinate systems: Predefined > Projected Coordinate Systems >
Continental >……….
□ Click Apply (see the change in the current coordinate system box).
Question 5.8
Selected datum (geographic coordinate system):
In order to achieve positive X and Y coordinates you may shift the origin of the
coordinate system (0, 0) from the projection centre to another location by means
of False easting and Northing coordinates.
Question 5.9
Selected False Easting
□ Modify the current map coordinate system and assign the selected false
easting and northing coordinates, if supported.
Question 5.10
Selected parameters (depends on the selected map coordinate system):
► Start-up.
▐ The raster map is in pixel space with no spatial coordinate system information.
ArcMap assumes that the data are unprojected, and therefore it reads out
geographic coordinates with map units expressed in degrees, minutes and
seconds (see lower right corner). This is obviously wrong! We deal here with
a scanned paper map, and any flat paper map is projected!
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 133
5.7 Georeferenicing a raster image
Fig 5.21:
Map units dialog box
□ Press Ok.
Fig 5.22:
Georeferencing tool
bar
[C] □ Zoom in [C] to the lower left corner of the scanned map.
Fig 5.23:
Lower left corner of the
scanned map
[D] □ Click the Add Control Points [D] button. Then, click the map corner.
□ Click the right mouse button, select Input X and Y .. and enter the map
coordinates of the corner point. Click OK.
Fig 5.24:
Enter coordinates
window
Question 5.11
Assume that the map coordinates of the 4 corner points are not given, but
instead geographic coordinates by means of a graticule. Would it be correct
to use these geographic coordinates for the georeferencing?
□ Click the View Link Table [F] button to open the table with the control [F]
points and check the residuals for each control point and the total Root
Mean Square Error (RMSE).
Fig 5.25:
Link table window
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 135
5.7 Georeferenicing a raster image
▐ The total RMS error should be smaller than 1.0. If the RMSE is greater than
1.0, you can repeat the georefencing by selecting [Georeferencing][Delete
control points] or delete one or more control points by selecting the control
[G] point(s), and then Click the delete button [G]
▐ ArcMap supports first order and higher order transformations. A first order
affine transformation is applied here. It requires a minimum of 3 control
points and 1 extra control point for the calculation of the RMSE.
□ Click Save.
▐ It’s obvious that the rectified map is placed on top of the georeferenced map
In this exercise you will assign coordinates to a raster map by means of a “world”
file, a file that contains the coordinate information to georeference the raster
map.
If you have raster images, which have been geometrically corrected (geo-
coded) in a package such as ILWIS or ERDAS they can be aligned in ArcMap with
the vector data.
Some image formats, such as ERDAS Imagine, BSQ, BIL, BIP and GeoTIFF
store the co-ordinate information in the header of the image file. ArcMap uses this
information for the correct positioning of the images.
However, other image formats, such as TIFF, JPEG and BMP don’t embed
co-ordinate information.
A world file with the co-ordinate information can be created for the correct
positioning of the image.
► Start-up
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 137
5.8 Optional advanced exercises
Fig 5.27:
Notepad editor window
with the world file
parameters
□ Save the world file in the same folder as the image (Data/Enschede/
Enschede Centre) with the name Photo98.jpgw.
▐ “Make sure you save the resultant world file using the appropriate suffix.
This suffix should be “.jpgw” .
□ Add the data layer Photo98.jpg once again (from the same folder
that contains the world file). Notice this time the image fits the other
information, because the georeference info in the world file is used
5.9 Summary
In this exercise:
● You transformed a data frame with a vector map of the World into
different map coordinate systems. Each map coordinate system has it’s
own characteristics.
● You specified the national coordinate system of Ghana. In a similar way
you can specify your own map coordinate system.
● You overlaid raster and vector data layers with different coordinate
systems “on-the-fly” to the coordinate system of the data frame provided
that the coordinate system information for the data layers were stored
with the data.
● You converted a vector data file from one coordinate system (WGS84
coordinates) into another coordinate system (Dutch coordinates:
Rijksdriehoekstelsel). Since the vector data file doesn’t have a projection
file (.prj) with the coordinate system information, you first had to
define such a projection file, before you could apply the coordinate
transformation of the vector data file.
● You selected an appropriate map coordinate system for a map of your
continent based on the shape and position of the continent and the
purpose of the map.
● You assigned map coordinates to a scanned map by means of 4 points
with known map coordinates.
● You assigned map coordinates to an aerial photograph by means of a
“world” file, and added the photograph to an existing map (enschede.
mxd) to check the alignment.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 139
Exercise 6
Topics:
6.1 Introduction
The department of Urban Planning in Enschede is interested in finding a
suitable location for a new high school. They want to use a GIS for this purpose
and they have asked us to help them out in the initial phase of their study.
The existing dataset contains spatial data on districts, neighbourhoods and
land use and statistical information on population by age category.
We will start by exploring the dataset. The Planning Department is
interested in the number of young people per neighbourhood. We will look at
the population statistics per neighbourhood and see which neighbour have the
largest density in the range of 15 and 19 years old. Once the neighbourhood has
been located, we will provide them with the figures of how much of the area is
covered by the different types of land use. This will help them to identify if the
area is suitable.
Data necessary to complete this exercise can be found in the Blackboard course 03:
Principles of GIS (2005) under: Assignments/Exercise 6: Tabular data and basic
queries
141
6.1 Introduction
Shortcut
1. Explore the features in your map with the identify tool and with interac-
tive spatial selections.
2. Perform a simple query.
3. Create a new table containing codes and descriptions for the Buildings
feature class.
4. Find which neighbourhoods fall within a district by clicking on a district
in the map (via a relate).
5. Extract the population of a neighbourhood (contained in the table
population) by clicking on a neighbourhood in the map (via a join).
6. Select the neighbourhoods with more than 200 people between the ages
15 and 19 and more that 100 people between the ages 10 and 14.
7. Select the neighbourhood with the highest population density for the
15 to 19 years old age range.
8. Calculate the percentage of area covered by the different types of land
use for the selected neighbourhood.
Identifying features
Be aware that the order in which you add the layers matters. The last layer
loaded will be placed at the top of the map, even though you can later organize
the layers inside the table of contents (TOC).
□ Use the identify button [A] to get information from the [A]
‘Neighbourhoods’.
□ Click on the Fields tab and select ‘Neigh_Name’ as the primary display
field (see figure below).
□ Click OK.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 143
6.2 Exploring the data
Fig 6.1:
Layer properties
window.
□ Use the Identify button and click on any of the neighbourhoods in the
map.
Fig 6.2:
Identify Results
window.
Question 6.1
Why do we get information on ‘Neighbourhoods’ and not on ‘Districts’ if
both layers are turned on in the TOC?
Question 6.2
Can we set inside the Identify Results window to the layer from which we
want to obtain the information?
□ Use the Select Feature button [B] and click on one of the neighbourhoods [B]
in the map.
□ Open the attribute table of ‘Districts’. If you scroll through the records
you can see that a district has also been selected. This is because ArcMap
automatically performs this operation in all the visible layers loaded in
the map.
In some cases, we want to choose which layers can have their features selected
when using the Select feature Tool.
□ Click on Close.
Fig 6.3:
Set Selectable Layers
window.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 145
6.2 Exploring the data
Question 6.2 a
Which is the name of the neighbourhood selected?
Question 6.2 b
Which is the name of the district selected?
Fig 6.4:
Attribute table of
Districts.
□ The fields in the attribute table appear in the Fields scrolling box on the
left of the dialog. Double click on [OBJECTID] (in the Unique Values
window the existing OBJECTID values in the attribute table are listed).
□ Double-click on the value ‘7’ from the Unique Values list. The query has
been added to the expression box (see figure below).
Fig 6.5:
Select by Attributes
window.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 147
6.3 Create and modify tabular data
The feature in the map and in the attribute table of the Districts layer has been
highlighted.
Question 6.3
What is the total area of that district? In which units is this value expressed?
Can you check it within ArcMap?
Identifying errors
□ Add the feature class ‘Buildings’ to the map (you can find it inside the
‘Topography’ feature dataset).
□ Click on the attribute type (the column is then selected in blue) and
right click to sort the records by selecting the descending option.
Fig 6.6:
Attribute table of
Buildings.
The attribute Code contains the codes for the features represented in the layer.
The corresponding descriptions of the codes are included in the attribute type.
You can notice that the type storage tank describes two different codes, 1080 and
1090. After consulting with the planners from the department we know that this
is a mistake in the dataset, as different codes should have different descriptions.
The code 1090 should be changed to reservoir tank.
□ Select Start editing to modify the values in the attribute table (see Fig.
6.7).
□ Locate the pointer on the type attribute value with Code = 1090.
Fig 6.7:
Editor toolbar
□ Click on Stop Editing from the Editor menu. When prompted to Save
the changes, click on Yes.
Your data has been modified on the disk and the code 1090 now refers to reservoir
tank.
Question 6. 4
Which SQL query or queries could have been used (though not within
ArcMap) for verifying whether there is a one to one correspondence between
the attributes Code and type of the Buildings table?
In this exercise we will look at the problem of using the attribute table from
‘Buildings’ as it is.
We want to know which features from the layer ‘Buildings’ are considered
buildings (and not storage tanks, for example). By looking at the attribute table
we could:
● Option one: run a query that selects the features where type =
building.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 149
6.3 Create and modify tabular data
● Option two: if we know the code for that particular type, run the query
that selects the features with Code = 1000.
Option one:
□ In the Select by attributes dialog, click the layer drop-down arrow and
select Buildings (see figure below).
□ The fields in the attribute table appear in the Fields scrolling box on the
left of the dialog. Double click on type.
Fig 6.8:
Select by Attributes
window.
At the bottom of the attribute table, next to the Selected button, we can see how
many records have been selected (12140).
Fig 6.9:
Attribute table of
Buildings with the
number of records
selected.
Option two:
□ Make a Selection by Attributes but this time use the expression Code =
1000 (as we know that this code refers to buildings).
* Question 6.5
How many records have been selected?
Can you explain why there’s a difference in count if both options were
selecting buildings?
□ Select the type field in the ‘Buildings’ attribute table and sort the records
choosing the ascending option.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 151
6.3 Create and modify tabular data
If you look carefully at the first value, you see a spelling mistake. Instead of
‘building’, the operator that entered the data typed ‘building’.
Fig 6.10:
Identified error.
To avoid possible typing mistakes in entering data, thus restricting the descriptions
and the allowed codes to the current classification, we will create a look up table for
the layer ‘Buildings’ (although the value restrictions can be enforced by other means
within ArcMap). This will result in the layer’s attribute table containing only the
allowed codes and the newly created table storing the description of each code.
We can create new tables in a geodatabase. This is done inside ArcCatalog.
□ Open ArcCatalog.
□ Point to New.
□ Click on Table.
Fig 6.11:
Create a new table in
ArcCatalog.
□ Click on Next.
□ To add a field to the table, click on the row in the Field Name column,
and then type Code. (This field will contain the codes from the Buildings
table.)
□ Click on the Data Type column next to the new field’s name and then
select Short Integer.
□ Repeat the last two steps and create a new field called Description with
data type Text (this field will store the description of the codes).
□ Click on Finish.
□ Close ArcCatalog.
Fig 6.12:
Table Properties
window.
If you have entered a field that you do not want to include in the new table, select
it by clicking in the grid and then press the Delete key.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 153
6.3 Create and modify tabular data
Fig 6.13:
Buildings_LUT
□ Once you have finished entering the values, click on the Editor menu
and select Stop Editing.
□ Close ArcMap.
► Create a new field in the Buildings table called New_Code [Think of the
data type for this new attribute!]
□ Right click the field heading New_Code and click on Calculate Values.
(Fig. 6.14)
► Remove the type and the Code attributes from the Buildings table.
Fig 6.14:
Calculate Values
for the New_Code
attribute.
Fig 6.15:
Values for the New_
Code attribute
□ Close ArcMap.
□ Open ArcCatalog.
□ Select the type field by clicking its tab in the grid (your cursor will
change to a black arrow and the whole line will be highlighted). Then
press the Delete key.
□ Click on OK to close the window. The changes have now been made in
the database.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 155
6.4 Joining, relating tables and performing queries
In this exercise we have created a look up table for the feature class ‘Buildings’
describing the codes. The purpose is to restrict the new codes that we enter to those
codes for which we have a description of. These ones are the only permitted values
for the attribute. Up until now we have not established any integrity constraint rule.
There is one way to restrict the values allowed in any particular attribute within
ArcGIS, without creating a look up table. This is done via attribute domains, inside
ArcCatalog. In our case we could have created a Coded value domain for the
Code attribute in the Buildings feature class to specify the valid set of values for
this attribute. The coded value domain would have included both the actual code
that is stored in the database (for example, 1000 for building) and a more user-
friendly description of what that value actually means (for example, building). In
this exercise we have not and we will not discuss this option.
Question 6.6
Now that the new table has been created, can you describe the relationship
between these two tables (Buildings and Buildings_LUT) in a simple
diagram or words?
When we need information that is not in the current table but in another, we can
link these tables together based on a common attribute. This is possible when a
common attribute exists in the tables.
Let us take the example from the previous exercise. We have created a new table
(Buildings_LUT) that contains the codes plus the description extracted from the
original Buildings table. In this case, we have two tables that are related to each
other by the attributes OBJECTID and New_Code. In the Buildings_LUT the
OBJECTID is the primary key and in the Buildings table, the New_Code attribute
has the role of foreign key. Thus, these two tables can be linked to each other to
extract information. For example, we may click on one of the buildings and see
what type of building has been selected.
In ArcMap you can establish this kind of link by either joining or relating tables.
Join: When we join two tables we append the attributes from one to the other
based on a common attribute.
We can join two tables when the data in the tables has a one-to-one or a
many-to-one relationship. For example, we have a layer showing neighbourhood
locations and a table with the statistic figures for each of them (one-to-one
relationship). Or we have the same layer with neighbourhoods and another layer
with districts. In this case, as many neighbourhoods are in the same district we
say that both layers have a many-to-one relationship.
In this exercise we are going to relate the attribute tables from ‘Districts’ and
‘Neighbourhoods’ to know which neighbourhoods fall within a certain district.
► Performing a relate
□ In the TOC right-click on the layer ‘Districts’, point to Joins and Relates,
and click on Relate.
□ Click the dropdown arrow to choose the field in this layer that the
‘relate’ will be based on. Click on the field ‘District_Id’ (it contains the
identifiers of the districts).
□ Click the third dropdown arrow and select the field District_Id.
□ Open the attribute table of ‘Districts’ (this is the layer for which you
have set up the relate).
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 157
6.4 Joining, relating tables and performing queries
□ Click on the Options button inside the attribute table, point to Related
Tables, and click on ‘Districts_Neighbourhoods’.
Question 6.7
Write the names of the selected neighbourhoods.
Question
Can you make a selection of the neighborhoods belonging to a certain
district by a spatial operation and not based on a common field in both
tables? Write down the topological operation that you would use.
In the last exercise we have related tabular data. When relating data we make
connections between the tables, but keep the tables separate. When we want
to display all the attributes from both tables we make use of joins. The result is
one table with information from the tables involved in the join. We can then run
queries to extract useful information. The join can be performed either using the
toolbox or by selecting the layer and right-clicking (context menu).
▐ Do not forget the type of relationship between the layers you want to join.
For example, when performing a join between two layers with a one-to-many
relationship, only the first matching record on the ‘many side’ will be joined
to the table.
Question
How many records does this table have?
Question
How many records does this table have?
We will make use of these common attributes to join the data from both tables and
extract population information from the ‘Neighbourhood’s layer.
Question
How many records do you expect after performing the join?
□ Go to the Toolbox and select Join from the Data Management Tools and
select Add Join (see Figure 6.16).
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 159
6.4 Joining, relating tables and performing queries
Fig 6.16:
Creating a join.
□ Choose the table ‘population’ (this is the table we want to join to the
‘Neighbourhoods’ layer).
□ Click OK.
Fig 6.17:
Join data window.
The result after the join operation is the attribute table of ‘Neighbourhoods’
containing its original fields and the fields from the ‘population’ table. You could
have also performed the join by right-click to the ‘Neighbourhood’ layer and
selecting Join.
□ Select those records where Population.B1519_98 > 200. [Be careful with
the spaces while typing the expression. There should be one space
before and after the operator >].
□ Click on Apply.
The neighbourhoods satisfying that condition have been selected in the map and
in the attribute table of the layer.
If we want to know which of the these selected neighbourhoods has the highest
young population:
Fig 6.18:
Sorting records.
Question
What is the name of the neighbourhood?
From the resulting records, they are also interested in selecting those areas with
more than 100 people between 10 and 14 years old.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 161
6.4 Joining, relating tables and performing queries
► Neighbourhoods with more than 200 people between the ages 15 and
19 and more than 100 people between the ages 10 and 14.
□ In the drop down menu Method, select Select from the current
selection.
□ Click Apply.
Question
Can you build an expression in the Select by attributes window that
performs the same selection but in one go, only using the Method: Create a
new selection?
□ In the ArcCatalog tree, select the geodatabase you are using for the
exercises.
□ Add a new field called Densyoung (at the bottom of the existing fields
list). Do not forget to set the Double data type.
□ Click on OK.
□ Perform the join between the population table and the attribute table of
Neighbourhoods. Then open the attribute table of Neighbourhoods.
□ Start an edit session by clicking on the Editor menu > Start editing.
□ Click on Apply.
This new field stores the density of people between 15 and 19 years old (population
per km2).
Question
Which is the name of the neighbourhood with the highest population
density in that age range? Highlight it in the map.
□ Add the feature class Land_Use from the geodatabase (it is contained in
the Topography feature dataset).
□ Specify that we want to Select features from the layer Land_Use, that
are completely within the features in the layer ‘Neighbourhoods’. Make
sure that the Use selected features box is checked.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 163
6.5 Summarizing tables
Fig 6.19:
Select by Location
window.
► Calculate the total area covered by the different types of land use.
□ Click on the Selected button. Only the land use areas contained in the
selected neighbourhood are shown.
□ In the first drop down menu select the field type (this is the field we
want to summarize).
□ Check the box Sum within Shape_Area (this is the summary statistics
we want to include in the output table).
□ Type the name and location of the output table you want to create (we
will save the table inside the same geodatabase).
□ Make sure that the box Summarize on the selected records only is
checked.
□ Click on OK.
Fig 6.20:
Summarize window.
Question
How much area does the different types of land use cover?
Question
Try to use Summary Statistics from the Toolbox. Is it possible to summarize
for selected features?
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 165
6.6 Challanges
Question
Which SQL query could have been used (though not within ArcMap) to
perform this selection?
Question
Write down the percentage of the total area of the neighborhood covered by
the different types of land use.
6.6 Challenges
► Challenge 1:
In section 6.3 we have created the new table Buildings_LUT and entered the
values manually. Imagine we had a long list of codes and descriptions. Which SQL
query could we use (though not within ArcMap) to select the distinct codes and
descriptions from the original Buildings table and directly fill in the Buildings_
LUT? Write down the SQL statement you would use in your query.
► Challenge 2:
In section 6.3 we have also manually update the attribute New_Code in the
Buildings’ table with the OJECTID values from the Buildings_LUT table. Which
SQL query could we use (though not within ArcMap) to perform this update?
► Challenge 3:
Can you provide the Urban Planning department with the name of the
neighborhood (and district) with the highest density of population within the
category of 15 and 24 years old?
► Challenge 4:
We want to select districts in the map and have the related neighborhoods with
their population values displayed automatically. Which operations can you use
to accomplish this task?
6.7 Summary
In these exercises we have seen several ways to retrieve information about features.
We have clicked on features to display their attributes. This is called identifying
features. We have clicked on features to select them and look at their records in
the layer attribute table. This is called interactive spatial selection. We have also
written queries that automatically select features meeting specific criteria. This is
called selection by attribute conditions. We have learned how these operations
can be carried out in ArcMap.
We have identified that the data in the database was not consistent. We have
learned how to modify tabular data and how to create a new table to improve the
structure of the existing database.
But not all the needed information was found in the attribute table of the feature.
We had statistical information related to the spatial neighbourhoods. This table
with non-spatial properties has been associated with the layer attribute table.
We have looked at joining and relating tables and the difference between these
operations.
To go deeply into extracting information from our features we have also learned
how to summarize the data by creating a summary table.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 167
Exercise 7
Spatial queries
Topics:
Selection of features based on distance, selection of features that are inside other
features, selection of features that overlap with other features and joining attributes
based on spatial relations (spatial join).
7.1 Introduction
In this exercise we will practice the analytical functions of GIS, as illustrated in
Chapter 5 of the book “Principles of Geographic Information Systems”. We will
start with spatial queries, and later in Exercise 8, we will discuss measurement
operations.
Data necessary to complete this exercise can be found in the Blackboard course 03:
Principles of GIS (2005) under: Assignments/Exercise 7: Spatial queries/Data.
169
7.1 Introduction
Shortcut
Toolbars
In order to follow this and the proceeding exercises, it is advisable to load the
following toolbars:
● Main Menu
● Standard
● Tools
● Draw
● Layout
Below you see the interface elements that you will use quite often during these
exercises:
Fig. 7.1:
Useful tools & menus
The following tools can be useful once you have performed a selection:
1. Zoom to selected features:
2. Switch selection
3. Clear selection
Fig 7.2a:
Zoom to selected from
Selection menu
Fig 7. 2b:
Use the context menu
to zoom to selected,
switch selection and
select all.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 171
7.2 Spatial Selection Queries
We are now going to introduce one more type of selection called Spatial Selection
Queries. These selection queries use topological relationships.
Fig 7.3:
Topological
relationships.
The figure above is taken from Chapter 2 of the book “Principles of GIS”. It shows
the topological relationships. You will use these relationships to make selections.
For example: “ Select all public objects that are inside the district number 5, or
select all neighbourhoods that meet (are adjacent to) the one already selected”.
The result of these operations is always a selection.
However, these relationships are not always applicable to all the feature
types, for example, a point can not contain line or polygon features, it can only
meet or intersect them.
► When you use the “Select by Location” dialog, a dropdown menu will
allow you to select these 11 topological relationships.
Question 7.1
Can you relate them with the ones that have been discussed during the
lectures? You can use table 7.1 to write down your answers.
ArcGIS Theory
Intersect
Refer to Spatial selection queries (section 6.2.2) in the lecture notes and
to Topological relationships (section 2.2.4).
□ Start ArcMap and see that by default the option “A new empty map” is
chosen. Accept it (OK).
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 173
7.2 Spatial Selection Queries
► Select all the buildings that are within 200 meters from the railway
▐ Notice that the checkbox “Use selected features” is greyed out. You are using
the whole railways feature class as base reference to measure the required
distance, and thus, for the entire selection process.
Fig.7.4:
Select By Location
As a result you should see the polygons of the selected buildings highlighted on
the screen.
Fig.7.5:
Conceptual Model:
Spatial Selection
Question 7.2
What is the average area of the building located within 200m from the
railway?
□ In the Layer dropdown arrow you will see the names of all layers that
contain selected features. In this case you should see “Buildings”
□ Click the Field dropdown arrow and choose the field “Shape_Area”.
The statistics display.
Often you may want to save your selection in a separate file to work on it outside
the current map. The following options are available in ArcGIS:
● Save only the attributes of the selected features in a separate table.
● Save the geometry together with the attributes. This can be done in two
ways:
o by exporting them to a feature class in a geodatabase (or to other
data formats as shapefiles or coverages)
o or by simply creating a new layer file containing the selected
features.
These options are accessible in ArcGIS through the Context Menu. Right click on
the layer containing the selected features (in our case “Buildings”) in the table of
contents.
For this exercise, you will save the selected buildings in both ways and compare
the difference in data sources
□ The dialog box “Export Data” opens. Choose the options as in Fig 7.6.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 175
7.2 Spatial Selection Queries
Fig 7.6:
Export Data method
□ Remember to answer “Yes” to the question “Do you want to add the
exported data to the map as a layer?”
Fig 7.7:
Saving data during
export operation.
Question 7.3
Compare the information provided in the “Source” tab of the “Properties…”
window of both the exported features and the saved layer. What differences
can you observe?
□ Use the attribute query option to select the district (use the field Distr_
ID).
□ Select by location all the features from “Buildings” that are completely
within the selected district. Mark the check box “use selected features”
(note the information “1 feature selected”)
Figure 7.8:
Conceptual Model.
Combined attribute
selection and spatial
selection
In the “Select by Location” dialog you can specify the selection method using the
“I want to:” pull down list. Selection methods include:
● Select features from
● Add to the currently selected features in
● Remove from the currently selected features in
● Select from the currently selected features in
These options are used to combine the results of two or more queries.
► Select the buildings in Enschede located in district no.0 (zero), and which
are within 200m from the railways and 100 meters from main roads
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 177
7.2 Spatial Selection Queries
▐ For the selection of buildings within 200m from the railways you can follow
the same steps as in the exercise Select features by location.
□ Use an attribute query to select the district (you may probably have
it already selected from the previous exercise). If needed refer to the
previous exercise.
Fig 7.9 :
Select by Location
using Selection
Method
□ Set the selection method to “Select from the currently selected features
in”.
□ Select from “Buildings” the features that are within 100m from the main
roads.
Question 7.4
Using the same selection dialog box, select all business areas:
A) Touching Water Areas (are there any?)
B) Containing Water Areas
C) That intersect Water Areas
What differences do you see? Try to organise your map so that the water_
areas are on top of the business_areas.
You can use topological relationships also in a different way. This operation will
not make a spatial selection but will join the attributes of the features in one layer
to features in another layer (e.g.: you may want to find in which neighbourhoods
are the public objects located). This is called a spatial join.
The added information consists of all attribute values for the joined feature
class. This information will be displayed when clicking on a feature with the
Information Tool.
▐ Note that this topic is out of sequence. It is a join and not a spatial selection.
The topic was put in here for comparison reasons. Notice the way the
topological relationships are used and compare with the spatial selections.
► Spatial Join
□ From a dropdown arrow select: “Join data from another layer based on
spatial location”. This other layer is the “Neighbourhoods” layer that
has the information on the neighbourhood name.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 179
7.2 Spatial Selection Queries
□ Under the step 3. name the output feature class in your geodatabase
and click OK.
□ Check the attribute table of the output layer. This now contains all the
information from both Special_Buildings and Neighbourhoods.
Fig 7.10:
Spatial Join dialog box
Question 7.5
Select all the business areas containing more than 15 buildings. Fig. 7.11
shows the conceptual model to help you out:
Figure 7.11:
Conceptual Model.
Combined Spatial
join with attribute
operations
7.3 Challenges
The challenges below consist of questions and exercises. These are more complex
than the Assignments that you have done in this Exercise so far. These exercises
may include skills that you have learned in previous exercises. The results of these
challenges will be made available to you via Blackboard.
If you are running out of time, you may skip the challenges and start with
Exercise 8.
► Challenge 1:
► Challenge 2:
Question: When you check one of the options under the “Interactive Selection
Method“ in the “Selection” menu, how does this affect the selection method of the
“Select by attribute” and “Select by Location”?
► Challenge 3:
Use a selection to identify all utility_pipes that run through more than one
neighbourhood.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 181
7.4 Summary
► Challenge 4:
Suppose you have to update an attribute table of roads adding the field Type.
Assume that you DO NOT have the TDNcode field in the attribute table of roads.
The values given in the new Type field should reflect the Type values of underlying
polygon feature class “road_infill”. How would you do it using the spatial and
attribute queries? Is it possible to use Spatial Join? Draw a conceptual schema.
► Challenge 5:
ITC wants to build up a new big parking plot. It should be located close to the
ITC building and it should be placed on the land available for the development.
Measure the summary area of these business_areas that are located within 100m
distance from ITC building, is there any such land available?
7.4 Summary
In this chapter you have studied Spatial Queries. From what you have studied,
you should now have the following skills/knowledge:
Spatial Queries
● Perform Spatial Selections based on topological relationships.
● Combine Attribute queries and spatial queries.
● Perform a Spatial Join.
● You are aware of the difference between a spatial selection and a spatial
join (they produce different types of output).
● You are aware of the similarities between the spatial query and the
spatial join (both use topological relationships).
► After all the work, you may want to look at the report that you can
generate from the history files. You have already done this in chapter 9.
Measurement operations
Topics:
8.1 Introduction
In this exercise we will practice the analytical functions of GIS, as illustrated in
Chapter 6 of the book “Principles of Geographic Information Systems”. These
exercises are based on section 6.2.1 “Measurements on vector data”.
Data necessary to complete this exercise can be found in the Blackboard course
03: Principles of GIS (2005) under: Assignments/Exercise 8: Measurement
operations/Data.
Shortcut
183
8.1 Introduction
Below you see the interface elements that you will use quite often during the
following exercises:
Fig. 8.1:
Useful tools & menus
From the Data Management Tools, from the Features toolset we will use the
following tools:
● Add XY Coordinates
● Feature To Point
● Feature Envelop to Polygon
Fig. 8.2:
Data Management
tools
From the Analysis Tools under the toolset Proximity we will use the following
tool:
● Point Distance
Fig. 8.3:
Analysis tool-proximity
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 185
8.2 Measurement functions
Introduction Exercise
► Create a new empty map, load the data, and set the appropriate units
□ Start ArcMap and choose the default option “A new empty map” .
Accept it (OK).
□ From the folder that contains the geodatabase for exercise 8, add the
following feature classes to the (yet empty) Map:
● Main_roads (polylines),
● Special_buildings (points),
● Buildings (polygons),
● Land_Use (polygons)
● Railways.shp.
▐ Although you will find a Railways feature class in the geodatabase, for this
exercise you will need the Shapefile version.
□ Choose “Data Frame Properties” from the View menu; choose the
“General” tab. Under the heading “Units” check whether the units for
both Map and Display are set to “Meters”.
Map Units determine the units of the Data Frames (views). ArcMap uses the setting
to determine the correct scale of your view. When the data is already projected,
ArcGIS fills the Map units textbox automatically, and the text box is greyed out.
If no projection is set, Map Units should be set (by the user) to the units of your
base data.
The Display Units textbox determines the units in which dimensions and
measurements in the view will be displayed in the ArcMap status bar.
If no projection is set, the default Display Units are set to unknown.
You can set the Display Units after the Map Units have been set. Units
CANNOT remain “unknown” if you want to make measurements!
□ Change the Name: “Layers” into “Measurement View” and click Apply
and OK.
Point measurements
The x,y coordinates are measured in the Display units set in the Data Frame
Properties.
□ Move your cursor and see how the x,y coordinates change in the status
bar (look at the bottom-right corner of the ArcMap window).
□ Zoom in and out and observe the changes of the map scale value in the
tool bar.
Fig. 8.4:
Point measurement
The XY values are stored with your data layers but are not visible in the layers
attribute table. You may want to include the XY values of the features in the
attribute table of the feature class. If that is the case, you have to create new
attributes in the attribute table of the feature class and fill it with the values of the
coordinates.
►Add XY field
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 187
8.2 Measurement functions
□ Select the layer “Special_buildings” as the input layer and click OK.
□ When ready, close the progress window and check the new fields in the
attribute table.
Fig 8.5:
Data management
tools in ArcToolbox
When you want to measure between two points you can use your measurement
tool and draw a line between these points to obtain the distance (see status bar,
bottom left corner).
There is also another method which we are going to use here. We will use the Point
distance tool to measure (and store) the distance between ITC and the special
buildings. The special buildings are already stored as points, but the ITC building
is currently stored as polygon. We will create a new layer (from the building layer)
containing ONLY the centroid of the ITC building. We do this because we want to
measure from point to point.
You will first create the ITC_point layer containing the centroid. Just like
coordinates, the centroid is a location property of the vector feature (see page 153
of your core book).
Examine your result. Note that the ITC point (centroid) is actually outside the
building polygon.
Fig 8.6:
Centroid point and the
ITC building polygon
You will now calculate the distance from the ITC point to your special buildings.
□ Input file is ITC_point, “Near features” are the features is the Special_
buildings layer.
□ Specify the output file name and click OK. You can close the progress
window when finished.
Fig 8.7:
Point distance dialog
□ When you click the Source tab (under your table of content) you see
that an extra table was added to your map document. Open the table
and check its content.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 189
8.2 Measurement functions
When you look at the table you will see that it contains 43 records. This is the
number of special buildings. The “Near_FID” is the ID of the special buildings.
The distance field contains the distance of the buildings to ITC.
Fig 8.8:
Output Point distance
operation
You can check the distance between ITC and one of the special buildings by using
your measurement tool and then compare the distance with the distance in the
table.
□ Use the mouse to draw a line (single click to change direction, double
click to end the line). Draw the line from DISH hotel to the ITC
building.
▐ If you are using global data in decimal degrees, and you’ve set your map and
distance units, the Measure tool will return the shortest spherical distance
(which is given in angular units referred to geographic coordinates) between
the two points you click.
The Statusbar shows both the length of the last segment you have drawn and the
total length of the line drawn on the map.
The segment length is the Euclidian distance between two consecutive
vertices along the line and the total length is the sum of all the lengths of the
segments that form the line.
Fig.8.9:
Line measurement with
the Measurement tool
The default, attribute tables of line and polygon feature classes in a geodatabase
include the field “Shape Length”. In this field, length values of single features
are stored; you do not have the possibility to edit them. You can see such a shape
length field when you open the attribute table of Main_roads.
However, for features that are NOT contained in a geodatabase (but, for example,
in Shapefiles) you will usually NOT find the length information in their attribute
tables.
We will compute the length of such features and store the values in the attribute
table.
► Length calculation
□ Start editing (from the Editor menu, in the Editor toolbar); Choose the
Shapefile as the layer you want to edit. fig.8.10:
Field Definition
□ Move the cursor over the header of the NewLength field and right click window.
to open the context menu. Choose: Calculate Values.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 191
8.2 Measurement functions
□ Click Ok, after the calculation, remember to click on Save Edits and
Stop editing in the Editor menu.
We have used Visual Basic for Applications to perform this calculation. The code
in the previous figure can be extracted from the ArcGIS desktop Help: in the
“Contents” tab under ArcMap>Working with tables>Making field calculations;
or in the “Index” tab under Fields in tables>Calculating values.
Area and perimeter are associated with polygon features. As in the case of Length:
the polygon feature classes stored in a geodatabase have the Shape_Area field and
the Shape_Length field (perimeter) in their attribute table by default. When area
or perimeter calculation is needed (for example in case of a Shapefile), you can
look up the VBA code in the help and carry out the same steps as described for
length in the previous task.
In your core book, bounding boxes are discussed in chapter 6. A bounding box
is the tightest box that will fit around your feature. The minimal bounding box
can be generated around a line or polygon feature. Bounding boxes are used by
your software as a support function. For example, when you ask the software to
select polygons that are adjacent (neighbours) it can use bounding boxes. When
polygons are adjacent the bounding boxes will intersect. Finding intersecting
bounding boxes is a relative simple operation. To illustrate the theory we will
calculate the bounding boxes of adjacent polygons.
□ In the land_use layer, select the polygon on which the ITC building is
located. (ObjectID 2502)
□ Use your selection tools to select all polygons in the Land_use layer that
are adjacent to (touch the boundary of) the selected polygon.
Question 8.1
How many polygons are selected?
□ For input layer choose Landuse. It will automatically use only the
selected features.
□ For output layer type AdjacentBoxes. You do not have to check the
multipart option.
This tool will create envelop polygons. Envelop polygons are another name for
bounding boxes. It will create the minimal polygon around a feature (in our case
the selected features) and will store these polygons in a new layer.
Fig 8.11:
ITC area with bounding
boxes of adjacent
polygons
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 193
8.2 Measurement functions
Above (Fig. 8.11) you see a picture of the area with ObjectID 2502 in black. Around
the area you see the bounding boxes of the polygons with object ID 2502 and all
the bounding boxes of the adjacent areas. The bounding box of the objected 2502
area is the largest bounding box. You see clearly that all the other bounding boxes
intersect this envelop.
When areas are adjacent, you can be sure that the bounding boxes of these areas
intersect. The opposite is not necessarily true: when the bounding boxes of two
polygons intersect, the polygons are not always neighbours. We will check this by
generating two bounding boxes for areas that are not adjacent but close together.
□ In the Buildings layer select both the ITC and the building of the
neighbouring Health Insurance Company through interactive
selection
Fig 8.12:
Selected buildings
□ Go to ArcToolbox and open the tool to create the envelops for these
buildings.
□ For input layer choose Buildings. It will automatically use only the
selected features.
□ For output layer type boudingITC. You do not have to check the
multipart option.
When you evaluate the result you will see that the two bounding boxes overlap
but the two buildings do not (Fig. 8.13).
ArcGIS uses bounding boxes to check for areas that are possible adjacent. For the
polygons with intersecting bounding boxes it will run another support function
to make sure they are truly adjacent.
Fig 8.13:
Overlapping bounding
boxes of non adjacent
polygons
Now that you created the bounding box for the ITC building we want to compare
this bounding box with the location of the centroid.
□ Make sure that only the BoundingITC and ITC_point layer are visible.
Question 8.2
Where is the centroid located?
You saw that the centroid of the ITC building is positioned exactly in the middle
of the bounding box.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 195
8.3 Challenges
8.3 Challenges
► Challenge 1:
Let us suppose the data view frame is displayed in meters but we want to
store the area values for example in yards or any other chosen unit. How would
you do so?
► Challenge 2:
If the data is not projected and is in decimal degrees, would the result of
the area computation be correct? In case it is not correct, what changes would you
make to get the correct area?
► Challenge 3:
Suppose we have the area values for the features in a Shapefile stored
in the attribute table. What would happen with these values if we modify the
geometry?
8.4 Summary
In this exercise we have performed measurements on spatial features. You should
have learned how to:
● Explore the X,Y coordinates of map features and make interactive
length measurements on a map (this information is not saved).
● Store X,Y coordinates in the attribute table of a feature class.
● Store X,Y coordinates, length, perimeter and area values for the features
in a feature class or Shapefiles (to do this you use Field Calculator).
● Create bounding boxes (Envelopes)
● Retrieve the centroid of a polygon
● Measure between two point locations.
Topics:
Buffering features, Single and multiple buffer rings, Union, Clip, Intersect, Erase
and Dissolve, using the environment settings, creating processing reports, history
toolbox.
9.1 Introduction
In Exercise 6 we helped out the Urban Planning department in the initial phase of
a study for the allocation of a new high school in Enschede. Since then they have
continued working on this case and they have reached the suitability analysis phase.
197
9.2 Description of the operations
Shortcut
Fig 9.1:
Analysis toolbox
Extract: Contains tools to extract features and attributes from a feature class or
a table based on attribute queries or spatial extraction and stores them in a new
Shapefile or geodatabase feature class. These tools include clip, select, split, and
table select.
Proximity: The Proximity toolset contains tools that are used to determine the
proximity of spatial features within a feature class or between two feature classes.
These tools can identify features that are closest to one another, calculate the
distances around them, and calculate distances between them. Contains tools like
buffer and multiple ring buffer.
From the Data Management Tools (Fig. 9.2) we will use the “Generalization”
toolset.
Fig 9.2:
Generalization toolset
Generalization: Tools in the Generalization toolset make data less detailed and
less complex for analysis and representation at reduced scales or for other special
purposes. The tools simplify data while maintaining its geographic characteristics
and integrity and meeting cartographic specifications.
UNION:
We use Union when we want to overlay two polygon layers so that the resulting
output layer a) has the combined attribute data of the polygons in the two inputs,
and b) contains all the polygons from the inputs, whether or not they overlap. In
this way, we can produce a new layer combining the features and attributes of
two polygon layers.
The output from this geoprocessing operation will be in the same coordinate
system as the data frame, irrespective of the coordinate system of the data sources
of the input layers (exception: when saving the output from this operation as a
feature class in an existing feature dataset).
CLIP:
We use Clip when we want to cut out a piece of one layer using one or more of the
polygons in another layer as a ‘cookie cutter’.
The layer that is having its features clipped can contain points, lines, or polygons.
If we only want a subset of the features in this layer to be clipped, we can select
them using any of ArcMap’s feature selection tools, before we perform the clip.
The ‘cooker cutter’ or clip layer must contain polygon features. If we only want
a subset of the polygons in this layer to be used as the ‘cookie cutter’, we should
select them before we perform the clip.
The attributes of the features in the output layer are the same as those of the
features in the layer being clipped.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 199
9.2 Description of the operations
The output from this geoprocessing operation will be in the same coordinate
system as the data frame, irrespective of the coordinate system of the data sources
of the input layers (exception: when saving the output from this operation as a
feature class in an existing feature dataset).
DISSOLVE
The output from this geoprocessing operation will be in the same coordinate
system as the data frame, irrespective of the coordinate system of the input layer’s
data source (exception: when saving the output from this operation as a feature
class in an existing feature dataset).
INTERSECT:
We use Intersect when we want to overlay a layer with the polygons in another
layer so that the resulting output layer a) has the combined attribute data of the
features in the two inputs, and b) only contains features that fall within the spatial
extent of the overlay polygons.
In this way, we can find just those features that overlap and ‘stamp’ the attributes
of the overlay polygons in the second layer onto the features in the first layer. We
can intersect polygons with polygons and lines with polygons.
ERASE:
ERASE creates a new feature class by overlaying two sets of features. The Erase
Features polygons define the erasing region. Input Features that are within the
erasing region are removed.
The output feature classes contain only those Input Features that are outside the
erasing region. Input Features can be polygons, lines, or points; but Erase Features
must be polygons. Output features are of the same class as the Input Features.
They are clipped to the outer boundary of the Erase Features polygons. Topology
is rebuilt for the output feature class.
The attribute table for the output feature class contains the same items as the
Input Features attribute table. The old feature internal number is used to transfer
item information from the Input Feature attribute table to the output features
attribute table.
We can specify that the intersection be limited to the currently selected set of
features in either or both of the two inputs. If we only want a subset of the features
in either or both layers to be used in the process, we can select these features using
any of ArcMap’s feature selection tools.
The output from this geoprocessing operation will be in the same coordinate
system as the data frame, irrespective of the coordinate system of the input layer’s
data source (exception: when saving the output from this operation as a feature
class in an existing feature dataset).
In the following exercise we have tried to cover all the operations discussed
above to learn how these are performed inside ArcMap. But be aware that there
is NOT a single procedure for this exercise; you can come up with different steps,
ending up with the same result!
Question
Try to formulate a conceptual model that will create the suitability map for
the location of the new high school.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 201
9.4 Step by step solution
□ Go to the tools menu in your main toolbar and select options. Choose
the tab geoprocessing and click on environments.
Fig 9.3:
Environment settings
In the introduction we stated some of the site constraints for the location of the
new school. This section describes how to identify the areas that are not suitable
and should be excluded.
We will start locating areas at a specified distance from existing schools. This is
important because your site should not be within a distance of 1500 meters of an
existing school. The layer you create will be used to exclude these areas from the
final result.
Schools are contained in the layer Special_buildings. We will define the query to
select only those special buildings referring to schools and we will buffer them
with a distance of 1,5 kilometres.
□ Select only those special buildings of type attribute equal to school (they
will be highlighted in the map and in the layer’s attribute table).
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 203
9.4 Step by step solution
□ Specify the output feature class as Buff_school, you will have to replace
the default name.
□ For distance, check the linear units box and enter 1500 meters.
□ Scroll down until you see Dissolve type, select all. This will dissolve the
barriers between the buffers.
□ Click OK to execute.
□ When the buffer layer has been generated you can close the progress
window and view the output.
Fig 9.4:
Buffer dialog
Fig 9.5:
Buffer of 1500 meters
around the schools.
The buffer zone you already created is an area that should be excluded from
the final result. There are other areas that should also be excluded, these are the
business areas.
Although they refer to different criteria, all of them should be excluded
from the final suitability map and that is the reason you want to combine them
in one layer. We will union the school buffers and the business areas into a single
layer called Areas_to_exclude.
□ Use the dropdown box to add both the Business_areas and the Buff_
school as input features.
Fig 9.6:
Union dialog
The Areas_to_exclude layer should look as follows:
Fig 9.7:
Result after the union
operation.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 205
9.4 Step by step solution
To find the proper locations we will first draw the buffers around the roads and
then we will perform a selection by attributes to identify suitable areas from both
layers (buffers at a specified distance and excluding forest areas). Then we will
clip the land use areas with the selected buffers of the main roads to take only
those areas for which both criteria are met.
When you click the tool, you may notice that this tool has a different symbol than
the rest of the tools. This is because the “Multiple ring buffer tool” is not a regular
tool but a script tool. The consequence is that your environment settings will not
be automatically applied. This means that you will have to type the full path for
your output feature class, instead of only the layer name.
□ As output features type Buff_Roads (specify the full path for this output
layer)
Fig 9.8:
Multiple ring buffer
dialog.
□ Click ok to execute.
▐ When you have a problem executing this dialog, specify the full path of your
output layer and try again.
The result after this operation is represented in Fig. 9.9. These polygons represent
areas within 0 and 500 meters and between 500 and 1000 meters. We will later
select only those areas within 500 and 1000 meters.
Fig 9.9:
Result after the buffer
operation dissolving
the barriers between
the features.
In case of not dissolving the barriers between buffers around the main roads
(specified in the Buffers Wizard window panel), we would have obtained the
representation as in Fig. 9.10.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 207
9.4 Step by step solution
Fig 9.10:
Result after the buffer
operation without
dissolving the barriers
between the features.
Question 9.1
Would it be possible to identify the areas within 500 and 1000 meters from
the main roads by a query? Explain why or why not. Try if you can succeed
in performing this selection.
► Clip the non-forested areas with the 500 to 1000 meters main road
buffer.
□ Open the attribute table of Buff_Roads. You will see a field called
“Distance” that stores the buffer distance.
□ Perform a selection by attribute and select all features but exclude the
features with land use type forest from your selection.
Question 9.2
Which SQL expression did you use to perform the selection of the non-
forested areas?
Question 9.3
Can you build the SQL expression that selects all the features that do not
contain the word forest in their type attribute?
Fig 9.11:
Clip one layer based
on another
□ Select the Land_Use layer as the input layer to clip.
You have now created a layer with areas that have a suitable landuse type and are
at the correct distance of a main road (Fig 9.12).
Fig 9.12:
Result after the clip
operation
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 209
9.4 Step by step solution
Up to now we have identified those areas in which the new school cannot be
located (Areas_to_exclude layer) and those ones in which it should be located
(Within_Areas). In this part of the exercise we will exclude the Areas_to_exclude
from the Within_Areas.
► The next figure shows in medium grey, the areas that should be selected
after the three steps mentioned.
The output will be a new layer (called Suit1) with the features in medium grey.
Fig 9.13:
‘Candidate’ areas
showed in medium ► Perform Erase operation
grey.
□ Go to ArcToolbox and open the Analysis Tools>Overlay>Erase
Fig. 9.14:
Erase dialog
□ Specify Suit1 as the output feature class and click OK. Close the progress
window.
The figure below (Fig. 9.15) shows the resulting areas contained in Suit1.
Fig 9.15:
‘Candidate areas’
stored in the Suit1
feature class
As stated in the introduction, one of the criteria was to find areas within a district
with a high number of young people. Therefore, it is necessary to look at the
population statistics. The following steps will allow us to select those districts
with a high number of people in the age group of 15-19 years old.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 211
9.4 Step by step solution
We will aggregate these statistical data at a district level. For this, we will start
joining population data to the neighbourhoods layer. As the neighbourhoods
have the identifier of the district they belong to, we will dissolve them based
on that identifier. With this operation we are summarizing the information on
neighbourhoods and we can specify to get the total population between 15 and 19
years old by district.
Fig 9.16:
Dissolve dialog
We are interested in the number of children that are between 15 and 19 years
old, so for the output layer we will specify that we want to summarize by the
attribute B1519_98 (we want the Sum of all the values per district included in this
attribute).
Fig 9.17:
Result after the
► INTERSECT the districts (Distr_youngpop) with the suitable areas dissolve operation
obtained in Suit1.
This intersection will ensure that for all suitable areas, we know the population
between 15 -19 years old, because the sum of the population will be included in
the attribute table of the intersection layer. This will allow us to classify the areas
for the final suitability map.
Fig. 9.18:
Intersection.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 213
9.4 Step by step solution
We will first create a new attribute to store the classification of the areas.
□ Use your toolboxes (Data Management tools, fields, add field) to create
a new field in the feature class Intersection_Suit1 called Classif (its data
type should be Text).
▐ Note that you have to include the double quotation marks (“ “) when you
calculate the new field value. This is because it is a string.
Fig 9.19:
Final suitability map.
Step by step you have gone through the process of finding suitable sites for a new
high school. Now that you have finished you may want to generate an overview
of all geoprocessing that you have performed. Remember that you checked if the
“track history” was turned on (In the first step of this exercise). It is now time to
check this history.
Fig 9.20:
Add a toolbox
You should now see a “History” toolbox that contains one or more history files,
which you can recognize by the data.
Fig 9.21:
History toolbox
▐ If you do not see your last session listed, or you don’t see the History toolbox
in your documents and settings, close ArcMap (save) and re-open. Your
history box should be updated.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 215
9.4 Step by step solution
□ Select the correct history file and right click the context menu
□ Select “Edit”. You should see the processes that you have performed.
(Fig 9.22)
Fig 9.22:
History model □ Go to the model option in the history menu and select “Report”.
Fig 9.23:
Process report
9.5 Challenges
► Challenge 1:
The urban planning department needs a location with a minimum area of 170000
sq meters (large enough for present and anticipated programs and the present
and expected population of the area). Are there any areas with this size in the
result you obtained?
What is the polygon with the largest size in the final suitability map?
In the final map there are adjacent areas not considered as a unit and with their
total area covered by them not being stored in the layer. Could you use any of the
operations you learned to obtain these area values?
► Challenge 2:
Perform once again the Intersection between the districts (Distr_youngpop) with
the suitable areas obtained in Suit1 but this time, save the output of this operation
as a Shapefile called Intersection_shp.
Make the classification for the final suitability map. Select from the resulting
areas the ones with a minimum area of 170000 square meters (like in Challenge 1).
Which is the result you have obtained? Which is the polygon with the largest area
in the resulting suitability map? Is it the same polygon as in Challenge1?
► Challenge 3:
In the geodatabase, there exists the relation between neighbourhoods and districts
through a common field in both attribute tables. Suppose we remove the foreign
key (Distr_ID) from the Neighbourhoods feature class (do it!). The link between
both feature classes no longer exists explicitly in the attribute tables.
With the operations you have learned, can you find a way to restore the identifier
in the Neighbourhoods’ attribute table?
► Challenge 4:
In Blackboard in the data for this exercise you will find a model. In ArcGIS 9.0
it is possible to store a set of tools as a process model. Learning how to create a
model is not part of this module but you can run the provided model. This model
will run all operations that you have carried out during this exercise and should
produce an identical result.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 217
9.6 Summary
9.6 Summary
In this exercise we have created a suitability map for the location of a
new high school. We started analyzing the criteria applicable to this case and
we saw that combining characteristics of the same location contained in different
layers was needed. We made use of overlay functions for this purpose. We have
discussed the following overlay operators: clip, union, erase and intersect.
We have also applied proximity computations by generating buffers around
features. The buffers themselves have become polygons and they have been used
as input for other overlay functions.
Topics:
Reclassification of raster data sets, convert vector feature dataset to raster, find
distance operation, use raster calculator, Use Spatial Analyst Tools via ArcToolbox,
make a raster dataset partially transparent, change temporary outputs to
permanent output, set analysis properties.
10.1 Introduction
In this exercise we are going to practice analytical functions, as discussed in
Chapter 6 of Principles of geographic Information systems. The time required to
complete this exercise is 120 minutes.
Data necessary to complete this exercise can be found in the Blackboard course 03:
Principles of GIS (2005) under:
Assignments/Exercise 10: Spatial analysis with raster data/Exercise data
Shortcut:
219
10.1 Introduction
In this exercise you will be working on raster datasets and therefore will use the
spatial Analyst menu shown below.
Fig 10.1:
Spatial analyst menu
bar
Fig. 10.2:
Spatial Analyst Toolbox
When you use ArcToolbox you will use the “Spatial Analyst Tools”.
You can solve this exercise in two different ways, either on your own or by using
the “step by step” instructions.
If you want to follow the “on your own approach” you can use figure 10.3 to
formulate your own conceptual model. When your model is ready you can
execute it.
You can also choose the “step by step approach”. First check the conceptual
model in Blackboard. Then, go to the “step by step” exercise and follow the
instructions.
No matter which approach you choose always start by exploring your data.
Add the data to an empty ArcMap document and look at the values, map
extents, grid cell size etc..
Conceptual Model
Create your own conceptual model here.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 221
10.3 Step by step exercise
Project preparation
► Open ArcMap with a new Map document and add the data for the
suitability study.
□ When ArcMap is not yet open, open ArcMap with a new (empty) map
document.
□ Add the layers (Landuse, height and main_roads) and explore the data
by going to the attribute tables and layer properties.
It is a good habit to explore your data before you are going to start the raster
calculations. This includes checking the attribute table, check if your raster dataset
is continuous or discreet. What is the cell size of your raster dataset? Do all of your
datasets have the same map extent and spatial reference?
► Explore data
Question 10.1
The height layer does not have an attribute table. Why?
□ Open the layer properties – Source tab and check the extent, data source,
coordinate system and for the raster layer the cell size and source type.
Before you start performing the analysis you can store some of your settings under
“Environment settings”. You have done this already in exercise 9. These settings
will be applied every time you perform a (raster) operation. In this exercise it is
important that we pay special attention to the raster analysis settings.
You can specify the map extent and cell size for every output raster that you
are going to create. Setting the environment settings will save you time because
you will only have to specify the extent and cell size one time. The options will be
applied until you change or remove them. You can also set the work directory, the
place where you want to store your outputs (like you did in exercise 9).
Fig 10.3:
Environment settings,
map extent
□ Under the raster analysis settings, you will specify your output cell size
as the same as layer “Height”.
Fig. 10.4:
Raster analysis
settings
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 223
10.3 Step by step exercise
The landuse dataset is currently a vector (polygon) dataset. When you continue
with your suitability analysis you need to use this layer together with your raster
layer “height”. Therefore you are going to convert this dataset to a raster layer.
In a raster dataset each pixel (cell) has a value. This value represents a
landuse code, soil type, height, temperature etc. In our case the new raster
value should be the landuse type. Before we convert the data we will go to the
attribute table of the original landuse layer and check in which field this landuse
code is stored.
□ Open the attribute table of the landuse layer and find the field name of
the column that stores the landuse code.
► Convert to raster
□ Choose the Landuse layer as your input file, the field is TDN_code,
store your new raster in the geodatabase under the name LandRaster.
Note that the cell size has already been selected.
Fig 10.5:
Feature to raster
conversion
In the previous chapters you have learned how to display vector data. When you
are displaying two polygon layers it is possible to make one layer transparent by
only showing the outlines of the polygons. In a raster environment there are no
polygon outlines. There are cells but it would not make any sense to show the
boundaries of each cell. Imagine that you would see the outline of every pixel in
the raster layer, you would see a very dense raster.
To be able to see two raster data layers together you can make the fill colour
of your pixels partly transparent.
We will now do this for the landuse raster, so that we can see the landuse
and height data together
► Display (transparency)
□ Make sure that only your landuse layer (LandRaster) and height layer
are displayed and that the landuse layer is on top of your height layer.
If this is not the case, change the order of your layers.
□ Go to the properties of the height layer (symbology tab) and change the
way the raster is displayed (select: Classified, 10 classes, select a colour
ramp)
Fig 10.6:
Raster Symbology
The higher areas should now have a darker colour. If this is not the case, select a
different colour ramp.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 225
10.3 Step by step exercise
Fig 10.7:
The “Effects” toolbar
□ Then click the “adjust transparency” button and slide the transparency
up to approximately 60%.
Fig 10.8:
Change Transparency
You should now be able to see the contours of the colouring of the height layer
through your landuse.
Reclassification height
In your criteria you have specified that not all heights are considered suitable. The
suitable areas should have a height of more than 40 meters. We are now going to
calculate a height suitability layer.
□ Click OK.
Fig 10.9:
Reclassification dialog
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 227
10.3 Step by step exercise
▐ When you type the Old values, you use a range (40 – 65 ). There should be a
space an both sides of the -.
You have now created two new classes. One with everything below 40 meters,
the new value for this class will be 0. And another class for everything above 40
meters. The value for these pixels will be 1.
You should now have a new raster layer with the name: “HeigtSuit” and
the values 0 and 1.
You already created a new layer with the suitable heights. Now you are going
to create a layer with suitable landuse classes. Remember that you don’t want
areas that currently have the landuse type “nature” (deciduous forest, coniferous
forest, mixed forest or heather) or are currently a “cemetery”. The areas that are
currently built up are not included in the raster layer. In the table below you will
find the corresponding TDN_Code value.
Fig 10.10:
Meaning of the TDN_
code
□ Fill in the reclassify dialog. All suitable areas get the new value 1; all
other areas get value 0. Note that you only have to change the new
values. The name of your output layer is LandUseSuit.
One of the criteria is that the new site should be more than 500 meters away from
a main road. You are first going to calculate a straight line distance layer.
Then you will reclassify this raster layer in suitable and unsuitable areas.
Fig 10.11:
Perform a Straight Line
Distance calculation
The outcome of this operation is a continuous distance raster with values ranging
from 0 to 1761 meters. (Fig. 10.12)
▐ You can also perform a distance operation via your “Spatial Analyst” toolbar.
Choose the option “Distance” – “Straight Line”.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 229
10.3 Step by step exercise
Fig 10.12:
Straight Line Distance
layer
□ Open your “Reclassify” tool and use “Distance” as your input layer.
□ Create two classes (0 - 500 meters) and (500 – 1800 meters) and assign
the values 0 for not suitable and 1 for suitable.
□ Click OK. Close the progress window and view your new output
layer.
Fig 10.14:
Reclassification
You created three suitability raster layers, one for height, one for landuse, and one
for distance to main roads.
Suitable areas are those areas that are suitable for all three criteria. To find these
areas we will combine the three raster layers. We will do this by simply adding
the values of the three layers together. If a pixel is suitable for all three criteria the
output pixel value will be 3. If a cell is only suitable for two of the three criteria the
pixel value will be 2. We will also have pixel with the values 0 and 1.
In this exercise we mainly used the toolboxes for the processing. We can also use
the ‘Spatial Analyst” toolbar to do our raster processing.
Fig 10.14:
Spatial Analyst toolbar
□ Use the “Spatial Analyst” menu to open the “Raster Calculator”
Fig 10.15:
Raster Calculator
You can add a raster layer (note the square brackets) by double clicking the layer
in the “layers” list. We encourage you to use the + sign by clicking on the + in
your dialog window and not by typing it from your keyboard. ArcGIS wants a
space on both sides of the operator. This will automatically be put in when you
use the dialog window.
▐ Note that you did not specify the name of your output layer. The output is
listed in your table of content as “Calculation”
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 231
10.3 Step by step exercise
▐ The progress window did not appear, this is normal for operations that you
run via the menu.
Evaluate the result and check if it looks ok. You should have four different values
(0, 1, 2, 3). Your output layer is not a permanent layer. You want to store it together
with your other data.
□ Right click on the Calculation layer to open the context menu. Select
Make Permanent, enter the name “FinalSuit” as your output name.
You decide that you want to store this file together with your other data in your
Geodatabase.
□ Under Save file as, select Personal Geodatabase Raster and make sure
the ITC_new is the database you are storing your output in
Fig 10.16:
Make permanent
▐ Although you made the raster layer permanent and have given it a name, the
name of the layer in the TOC did not change. It is still called “Calculation”.
You can check if it saved your layer in different ways:
□ “make permanent” is no longer available
□ you can add the layer and check if it is available from your
geodatabase
□ you could also open ArcCatalog and check it there.
The final result should look like Fig 10.17:
Fig 10.17:
Result of your
suitability analysis
The areas with the darkest colour are the most suitable areas.
Question 10.2
You should be able to perform the same calculation in ArcToolbox, which
tool would you use?
You like your result very much but you think it will be useful to have a layer with
only the most suitable areas. You will use your raster calculator again and will
now use a comparison operator.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 233
10.3 Step by step exercise
Fig 10.18:
Only the most suitable
areas.
In the figure above we have displayed the cells with value 1 in black, all other cells
in white.
Question 10.3
Perform the same calculation again but now using your ArcToolbox. Which tool
did your use?
► Report
Now that you have finished your analysis work, you may want to look at the
report that you can generate from the history files. You have already done this in
chapter 9.
10.4 Challenges
► Challenge 1:
► Challenge 2:
In the last exercise we used the “Finalsuit” layer as the input for the expression.
We could also have taken the two original input layers (height, Land_use) and the
distance raster. Use the calculator to write a Raster Calculator expression that will
immediately calculate an output layer with only suitable and not suitable using
height, Land_use and the distance raster as your input.
► Challenge 3:
In the exercises a distance layer was calculated. The instructions indicated that the
distance units were meters. Is this true, and how can you check?
► Challenge 4:
In Blackboard in the data for this exercise you will find a model. From ArcGIS
version 9.0 onward it is possible to store a set of tools as a process model. Learning
how to create a model is not part of this module but you can run the provided
model. This model will run all operations that you have carried out during this
exercise and should produce an identical result.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 235
10.5 Summary
10.5 Summary
In this chapter you practiced your skills in using raster datasets to do some
fundamental raster operations. You are now able to:
● Use the “raster analysis settings”
● Perform a simple distance function
● Perform a simple raster calculation using either the raster calculator or
the tools available via ArcToolbox.
The topics discussed in this chapter are just a small selection from what is possible.
During other modules you will learn that there are far more complex raster
calculations that can be performed in ArcGIS. This goes beyond the operations
included in the ArcGIS Spatial Analyst menu. Examples are the hydrological
functions including direction of flow, accumulation of flow and calculating
watershed boundaries. This requires a further understanding of the syntax of
this calculator.
Topics:
Using the visualization properties within ArcMap, produce and visualize maps
containing qualitative and quantitative data. One of the maps produced will be
designed up to the publishing stage.
11.1 Introduction
During the previous exercises you have used many of the tools ArcGis offers to
work with both geographic and attribute data. In this exercise we will explore how
to use the ArcGis tools to visualise spatial data. To demonstrate this visualisation
process, we will make use of different map types (to accommodate qualitative
and quantitative data) and prepare them for publishing purposes. During the
process of map making, we will examine the results generated by ArcMap and
adjust them if necessary.
Refer to section 7.4 and 7.5 of the lecture notes Principles of GIS.
In this exercise we will make use of the data about the neighbourhoods of Enschede
to demonstrate in which ways ArcMap can support you in the visualization of
your data.
Data necessary to complete this exercise can be found in the Blackboard course
03: Principles of GIS (2005) under: Assignments/Exercise 11: Spatial data
visualisation/Exercise data
Shortcut:
237
11.2 Step by step exercise
In this exercise you will mainly work with the layer properties window (symbology
and label tabs).
□ Open ArcMap
□ Rename the Data Frame to: Neighbourhoods (in Data Frame Properties
> General tab).
□ Open the Layer Properties dialog and click on the Symbology tab
□ Select Pastels for the Color Scheme (Note: if you do not see text in
the Color Scheme box, right click on it and remove the tick in front of
‘Graphic View’).
□ Check off <all other values> and click on the button: Add All Values.
□ Click ‘OK’.
Fig. 11.1:
Representation of
the neighbourhoods
of Enschede in a
qualitative way.
□ Maximize the ‘View’ on the screen and judge the result in the mapped
area.
Question 11.1
Do neighbouring countries differ enough in colour (hue)?
It appears that the hues of some of the adjacent neighbourhoods are quite close to
each other. One way to improve the result is to re-apply the colours.
□ Move the dialog window to the utmost left bottom corner in order to
see the maximum amount of neighbourhoods in Enschede.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 239
11.2 Step by step exercise
▐ Notice that ArcMap has changed all the colours randomly by making another
selection within the colour scheme: ‘Pastels’. If necessary, you can repeat this
process until the colours in neighbouring areas are clearly different.
Besides simply applying a color ramp like you did in the previous task, there is
also a way to learn more about the colors that are used in this ramp. This is done
via the “style manager”.
Fig. 11.2:
Default ‘Color Ramps’
□ Double click ‘Pastels’ to open the color ramp properties. In the dialogue
window you can read the colour definitions of the colour scheme
‘Pastels’.
The colour definitions for an administrative map (like the map of the neighbourhoods
of Enschede) are excellent. However, if there are many administrative units (in
this exercise: 68), some adjacent neighbourhoods are too close in colour to each
other to enable spontaneous discrimination. Therefore, we often have to adjust
individual colours. It is important to choose colours that remain within the HSV
limits (see Fig 11.3).
Fig. 11.3:
Properties of a Color
Ramp
Judge the result in the ‘Preview’ area of the colour scheme ’Pastels’.
Question 11.2
Which neighbouring areas in the map of Enschede are too close in colour to
each other?
▐ If necessary make use of the ‘Identify’ button to identify the names of the
neighbourhoods to be changed in colour
► Adjustment of colours.
* Question 11.3
Find 4 other colour schemes that could be employed to express the nominal
character of the information in this map.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 241
11.2 Step by step exercise
Question 11.4
Explain why the colour scheme ‘Yellow Greens’ is less, or not at all suitable
for this type of map?
From the above we can draw the lesson that ArcMap offers excellent possibilities
to choose nominal colour schemes. However, only few of them fulfil for 100%
the demands of these kind of map types. I.e. usually, adjustments will have to be
made.
□ Save the map and name it Neighbour.mxd. Proceed with the next part
of the exercise.
In this part of the exercise you will construct a so-called choropleth map showing
population density in the neighbourhoods of Enschede. You will create a new
Map, load the neighbourhoods of Enschede and join its attribute table with an
external .dbf table. The aim is to show you in which ways ArcMap can support you
in solving two main choropleth construction problems: classifying the statistical
data and selecting an appropriate graded colour series.
□ Create a new map and rename the data frame to: Population density.
□ Under General in the Data Frame Properties, define the map units in:
Meters.
In this case, the field: CBS_data.BEVDICHT already contains the results of the
above calculation.
□ From the ‘Fields Value:’ drop down list, select the column CBS_data.
BEVDICHT.
Fig. 11.4:
Toggle ‘Graphic View”
on/off
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 243
11.2 Step by step exercise
Data classification
We will now have a brief look on how a user can influence the classification of the
data:
Fig. 11.5:
Classification window
In the remaining part of the exercise we will use the default settings (Natural
breaks method; 5 classes).
We will attempt to improve the default legend in the ‘Table of contents’ of the
population density map. We assume that you have selected the ArcMap Color
Ramp: Orange Bright; and 5 classes. Judge the result. If the colours in the series
are gradually increasing (or decreasing) in perceived ‘darkness’, then none of the
colours stands out visually.
Question 11. 5
Are there colours standing out in the default ‘Orange Bright’ Color Ramp?
When we observe the series in more detail, we can conclude that ArcMap supplies
us with a range of colours that has reasonable steps in the ‘Orange Bright’ Color
Ramp. Let’s however have a look at the size of the classes represented by the
colours.
Notice the steep increase in size from class 2 to class 3 and from class 4 to class 5.
These increases are, however, not expressed in the Color Ramp. On the basis of the
numerical data we may conclude that the graduated colours could be improved.
ArcMap allows the user to redefine individual colours of a Color Ramp.
From the various possibilities to adjust the Color Ramps within ArcMap, we will
focus on two methods here:
● METHOD 1: Adjustment of the properties of the whole Color Ramp
(where the colours of each class will be affected).
● METHOD 2: Adjustment of the individual colours in a Color Ramp
(where colours of a selected class will be affected).
□ In the dialogue window you are able to change the values for the two
extreme colours by moving the two sliders: Black to Bright; White to
Bright. Experiment with the possibilities and judge the result.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 245
11.2 Step by step exercise
Fig. 11.6:
Select the properties of
a Color Ramp
Question 11.6
From the result of the previous operation, can you observe an improvement
in the graduated colours (classes 2 – 3 and 4 – 5)?
Fig. 11.7:
Choice of colour in
‘Symbol Selector’
Fig. 11.8:
Colour systems within
‘Color Selector’
□ The ArcMap colour palette appears. We will not make use of the
standard colour palette but select: More Colors….
□ Experiment with the possibilities that the various colour systems offer
(see arrow in the right top corner of the dialogue window).
* Question 11.7
With the adjustments made in the steps above, are the differences between
the classes better expressed than in the default solution?
If correctly executed, the graduated colour series in both methods 1 and 2 should
display an improved result compared to the default ArcMap solution. If you
compare the results of both methods, the best result can be obtained by method 2.
Next, you will produce a map displaying the number of dwellings of the
neighbourhoods of Enschede by graduated symbols.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 247
11.2 Step by step exercise
□ From the ‘Fields Value:’ drop down list, select the column CBS_data.
AANTWON.
□ Click ‘OK’ and judge the result in the map and also in the legend.
Fig. 11.9:
Draft version of a
Graduated symbol
map
▐ When you consult the attribute table, you will notice that there are
neighbourhoods that do not have dwellings but still have a symbol, the
information is therefore misleading.
Question 11.8
How can we be sure that there are only point symbols in neighbourhoods
with dwellings?
Fig. 11.10:
Data exclusion
properties
□ In this window, click on the button ‘Exclusion…’ and the window Data
Exclusion Properties appears.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 249
11.2 Step by step exercise
Now the point symbols in some areas have disappeared. Notice, however, that the
AREAS without symbols have ALSO disappeared; they are no longer represented
as neighbourhoods of Enschede. This is a common problem in ArcGIS, but it can
be solved (see the challenges in this chapter).
Fig. 11.11:
“Vanished” area
information because of
data exclusion
▐ ArcMap also offers the possibility to represent absolute quantitative data by
unclassified proportional point symbols.
► In a new Data Frame, test the option: Quantities > Proportional symbols
and compare the result with the saved map: “No of dwellings”.
Next you will place text in areas on a map. In order to add names to areas (e.g.
neighbourhood names), we need to have this information available as a text string.
If you open the attribute table of the previously saved Popdens.mxd, you can find
the names of the neighbourhoods in the field: e_neighbourhood.NAME2_
□ From the list under the heading: Text String; Label Field select: e_
neighbourhood.NAME2_
□ Click OK.
Fig. 11.12:
Labelling of area
features
□ Try to change some of the settings in Layer Properties > Text Symbol:
Symbol > Other Options > Label Placement Options.
Fig. 11.13:
Improved labelling by
omission
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 251
11.2 Step by step exercise
Producing a layout
The final part of the exercise consists of producing a layout of the Population
Density of Enschede by neighbourhoods.
You will explore the layout possibilities of ArcMap. First a ‘default’ layout will be
produced, then we will adjust the result to improve the visualisation.
Fig. 11.14:
Result of the
population density map
of Enschede in the
Data View
Task:
Produce a ‘landscape’ oriented layout containing the following:
● The map of the Population Density of Enschede by Neighbourhood at
the scale 1: 100,000
● A scalebar
● Map title: Population Density of Enschede by Neighbourhood, 1999
● Legend: Population density.
□ Select ‘Layout View’ in the menu View. ArcMap positions the geographic
information on a “Virtual page”, with the Default settings.
□ Click OK.
▐ In case you cannot change the scale, you have to set the units to
meters.
□ In the main menu select “Insert” and ‘Title’. A block of text will appear
somewhere on the Layout View.
□ Click ‘Apply’. You will see the result directly in the layout view (if
necessary, move the dialogue window ‘Properties’ to the left bottom
corner of the screen).
You probably like the text to be more pronounced. Try the possibilities ArcMap
offers within the dialogue window ‘Properties’, like ‘Character Spacing’, other
text styles under the button: ‘Change Symbol…’; the use of value (Bold, Medium,
Light); or ‘Mask’.
Click ‘Apply’ to judge the result on the screen. When you are satisfied with the
result, click OK.. If necessary, reposition the title to a more suitable place in the
layout.
ArcMap offers a number of different scalebars. We will use one example here.
□ Choose ‘Alternating Scale Bar 1’ and click OK. Note that ArcMap
positions the scalebar in the centre of the layout view.
□ Click and drag the scalebar to the position bottom center of the mapped
area.
Fig. 11.15:
Addition of a scalebar
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 253
11.2 Step by step exercise
The legend is required to relate the values of the colours in the neighbourhoods
to the classes in the legend.
□ In the ‘Legend Wizard’, select which layers you want to include in the
legend.
□ Each of these properties is editable: click the i button and make your
choices.
□ Click ‘Next’.
□ In the following two windows you can specify the distance between the
symbols and the explanatory text. Click ‘Finish’.
In the dialogue window: ‘North Arrow Selector’ you can make a choice out of a
variety of examples of north arrows.
□ Choose a north arrow that suits the overall design of the layout. The
button ‘Properties’ allows you to fine-tune the chosen north arrow.
Click OK.
Fig. 11.16:
Completed layout of
the map: Population
Density of Enschede
by Neighbourhood
11.3 Challenges
► Challenge 1:
Try to improve the impact of the design by some of the graphic novelties ArcMap
offers e.g. a gradient background, or a mask to reinforce the title….:
Fig. 11.17:
Application of ‘Graphic
novelties’ in ArcMap
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 255
11.4 Summary
► Challenge 2:
Remark:
The great disadvantage of the method: Convert Labels to Annotation…
Is that you break the ‘Live’ link with the data. The labels are converted to graphic
objects, and cannot be recalled anymore as labels!
► Challenge 3:
Try to produce layouts for the other maps, produced in this exercise.
► Challenge 4:
Refer to Fig. 11.11: How would you solve the problem of the missing areas?
11.6 Summary
In this exercise you developed skills to produce maps containing data of different
kind of nature. Furthermore one of the maps has been selected as a sample to
include a proper layout which is suitable to be used for publishing purposes.
One should realise that no ‘standard’ layout exists to meet the requirements of
every map but this exercise aims to be a guiding aid to produce maps from other
datasets.
Data quality
Topics:
Repair the reference between layers and datasets, Use Bookmark, Calculate error,
Check for systematic errors, Calculate Mx, My and RMSE
12.1 Introduction
In this practical you will learn to use a simple procedure to assess location errors.
The time required to complete this exercise is 60 minutes.
Data necessary to complete this exercise can be found in the Blackboard course 03:
Principles of GIS (2005) under: Assignments/Exercise 12: Data Quality/Exercise
data
In this dataset you will find a Map document (Lakes) and a geodatabase with the
feature dataset Lakes and two feature classes e_water (the water bodies of the
Enschede area) and ov_lakes (the lakes of the Overijssel Province).
Please refer to section 4.3 of the lecture notes for the theoretical
background of this exercise.
Shortcut
1. Open the Map document and repair the link to the source data
2. Use the Bookmark “Quality” to zoom to the area where you will per-
257
12.2 Quality assessment
Toolbars
▐ Notice the red question marks that appear in front of the two layers in the
Table of Contents. Also notice that although the show/hide checkbox are
checked for both layers, the layers are not drawn in the Map window.
This indicates that a problem occurred while opening the Map document.
specifically it means that ArcMap cannot find the data layers referenced by this
Map document.
There are several reasons why this may happen. For instance, if the data
layers have been deleted, ArcMap will not be able to locate them.
In our case the problem is less drastic, here the problem occurs because the
data are not in the location stored in the Map Document, and ArcMap is looking
for the data in the wrong place.
To make be able to see the data and use it for your exercise you will need to
repair the link between the layers and the data.
Fig 12.1:
Missing data source ► Repair the reference between the layers and the datasets
□ Right click on the layer to display the layer Options menu. Select “Data”,
and then “Set Data Source”
□ In the dialog window, navigate to the new location of the data, select
the dataset and click the Add button
▐ Note that if your data sets are all in the same folder, you will only need to do this
for the first data layer. ArcMap automatically will find the rest of the datasets.
In other exercises (2,3,5) you also opened Map Documents that you had previously
copied from Blackboard. But in those cases you had no problems with the links
between the layers and the data sets.
In this case the problem occurs because the references to the data sets in the
Map Document were saved as absolute path names. Absolute path names include,
for instance, the drive letter of the hard disk where the data sets are stored. As
you copy the data sets from one computer to the other, drive letters are likely to
change. Similarly if you decide to organise the exercise data according to your
specific needs (which might be different from those of the person that created the
exercises) the sequence of folders in which you will store the data will likely be
different from the original one.
As a standard, when you want to share Map Documents and data sets with
somebody else, it is convenient to avoid using absolute path names.
How to avoid absolute path names will be the topic of one of the Challenges
at the end of this exercise.
Let’s move on to the assessment of the quality of your data sets. For your
convenience, we created a Bookmark which will lead you directly to the area
where you will take the measurements to calculate the accuracy of the data.
In your Map Document you see two layers representing Water bodies. One
was taken from a 1:50.000 scale map of Overijssel (ov_lakes) the other from the
1:100.000 scale map of the Enschede area (e_water).
We are going to calculate the error between the two lake features.
In order to compare the two features you need to measure the coordinates of
corresponding points. This means measuring the coordinates of a point in the
Overijssel feature and then measuring the coordinates of the corresponding point
(the same point) in the Enschede feature.
As an example to guide you in the selection of corresponding points, fig.
12.2 gives you some suggestions. Nevertheless you are free to choose your own
points.
Fig 12.2:
Examples of
corresponding points
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 259
12.2 Quality assessment
▐ We understand that you can never be absolutely sure that your points are
indeed corresponding points. Do not forget that this is an exercise.
Given that the Overijssel data set was digitized from a larger scale map, we will
assume that it represents the ‘true’ location and shape of the lake.
For our exercise we will estimate the error of the lake in the Enschede dataset
from our “assumed” true.
To calculate the RMSE you will need to measure the coordinates of at least ten sets
of points. As you measure the coordinates of the points, you can enter them in the
table in appendix to this exercise.
Question 11.1
Calculate the error at each point
□ Move your mouse pointer over the first of two corresponding points.
□ In the ArcMap status bar read the coordinates of the point and fill the
Easting and Northing of the first point in the table provided.
□ Again, read the coordinates from the ArcMap status bar and fill the
Easting and Northing of the corresponding point in the table.
□ Repeat this procedure for at least nine more couples of points. (Note:
When you write the coordinates in the table, make sure you are consistent
and careful in entering the coordinates measured on the Enschede layer
in the (true) columns and the ones measured on the Overijssel layer in
the (meas) columns.)
□ When you have the true and measured value for both Easting and
Northing for all of your points, calculate the differences for both Easting
and Northing. Subtract the measured value from the true value. Write
the results in the columns provided (E true-meas and N true-meas).
□ Now calculate the square of the differences and write the result in the
dx2 and dx2 columns (you will use these values later when calculating
the RMSE)
You have now measured the coordinates of the corresponding points and you
have calculated the error of each point in x and y.
Question 11.2
Visually check the data in your error table. Do you think that there is a
systematic error? Calculate the Systematic Error in both x and y.
► Calculate Mean Square Errors for both x and y (mx, my) and the total
Root Mean Square Error (RMSE)
□ Use the data that you collected in your error table and the formulas
form the text book to calculate Mx, My and RMSE
Question 11.3
Do you think this error is acceptable?
▐ If you would like to check your calculations, a digital version of the table is
included in Blackboard
12.3 Challenges
► Challenge 1:
Now that you have an estimate of the accuracy of the Overijssel dataset, it is wise
to keep track of it updating the metadata.
Refer to the appropriate section in Exercise 1 and update the metadata of
the Overijssel dataset.
Describe your observations on the positional accuracy in the appropriate
field.
Note that you may write both values (quantitative) and free text (qualitative)
descriptions of the accuracy.
► Challenge 2:
In this exercise we noticed that the links between the layers and the datasets that
are stored in a Map Document can be saved either with absolute path names or
with relative path names.
Using the Help facilities provided with ArcMap, find out how you can
control whether the link are saved as absolute or as relative path names.
Test your findings by creating two documents with relative and absolute
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 261
12.2 Summary
path names. Move them to a different folder and open them in ArcMap.
12.4 Summary
In this exercise you applied the formulas explained in your textbook to calculate
the location error between two features representing the same lake in two different
data sets.
If you have time left you can check other features in this dataset or other
datasets and check them for data quality and metadata.
Principles of Geographic Information Systems, Exercises GFM, GIM and UPLA 263