Documente Academic
Documente Profesional
Documente Cultură
Section 1: Theory
Textbook readings: Chapter 6 and lectures
Answers to these questions can be found in the textbook, in the guided tutorial, or
online. After reading the sources you find, please provide the answers in your own
words. If you use somebody elses wording, please reference the source.
Each question is worth 2 marks
1. Explain why, when working with raster data, measuring distance between two
points can result in several different answers?
2. Describe possible reasons for reclassifying a raster dataset.
3. Describe the principles on which the filtering operation is based.
4. What are the issues that affect the raster overlays?
1 | Page
Understand how ArcGIS Spatial Analyst fits into the geoprocessing framework
Run Spatial Analyst operations using a tool dialog box and a model
Reclassify data
Instructions
1. Go to: http://training.esri.com and select My Training from the left-hand menu.
2. Select My Virtual Campus Courses and then log in using the username and
password you created when you worked on Assignment 1.
3. Type the course access code I sent you into the Start a New Web Course box
and click Go.
4. You will see the course Learning ArcGIS Spatial Analyst appear in your
course list. Click on it to begin.
5. Save the data provided for this course on your H:\ drive or any other drive you
have a permission to write to, so that when you create or modify the datasets
you would be able to save these changes.
6. In Module 1, complete all of the section Working with ArcGIS Spatial Analyst.
In the section Preparing your data for analysis, do Convert vector data to
raster data and Reclassify an elevation raster exercises.
Notes:
Exercise Work with Spatial Analyst tools
Here is how the settings in the tutorial correspond to the options you have in the
ArcGIS Environment Settings dialogue box:
Tutorial
Current workspace
Workspace
Scratch workspace
Workspace
Extent
Raster Analysis Settings
ArcGIS 10
Processing Extent
Raster Analysis
Steps 6 and 7: Run a Spatial Analyst tool using the command line
We are going to skip these two steps because the changes implemented in
ArcGIS 10 substantially altered this function. In ArcGIS 10, the Command Line
window has been replaced by the Python window, where you can execute
tools in command line style environment. This window can be accessed through
Geoprocessing Python. This window can also be opened by clicking on the
corresponding button on the Standard toolbar at the top of the ArcMap
window. Knowledge of Python language (or willingness and time to learn it) is
required to run tools and other functionalities from the Python window, which
is outside of the scope of this class. If you would like to learn more about Python
and the Python window, please refer to the following sections in ArcGIS Help:
3 | Page
describing a tool contains sample Python scripts that you can copy and paste
into the Python window and then run.
Exercise Convert vector data to raster data
Step 9: Find differences between the NewLand and the Landcover layers
The expression you need to enter in this step is
4 | Page
Diff("Landcover","NewLand")
8. You do not need to submit results of your work for this section of the
assignment. You will rely on the skills you learned in this section,
however, to complete the on your own section that follows.
In an area that is sufficiently high above the sea level and would not be at
risk of frequent flooding. The acceptable elevation is determined to be more
than 500 meters above the sea level.
Close to a major city to ensure the quick access to the market for this
perishable produce. The distance of 50 km or less was found to be
acceptable.
Farms should not be located on moraines as it will make looking after and
harvesting strawberries difficult.
The farm should be located in an area where soil is suitable for agriculture.
Instructions
1. If necessary, start ArcMap and add the data from the Assignment 7 folder to map
document. This folder contains the following files:
lrgcity_lcc1 a dataset containing municipal boundaries of Saskatchewan
large cities (not including major water bodies)
moraines_lcc a dataset containing location of moraines
5 | Page
Projection and
coordinate
system
Data model
2 marks
Feature type
(if
applicable)
Type of values
stored (if
raster)
lrgcity_lcc1
moraines_l
cc
agric_lcc
dem_sk_lcc
Note that the large cities dataset includes some unconventional large cities in it.
This illustrates the issue of data quality when dealing with free digital data even
if it is obtained from reputable sources. For the purposes of this exercise, we will
leave this issue unaddressed.
3. Before you start the analysis, you need to develop a workplan determining the
sequencing of your operations. You can use the flowcharting approach you have
seen used in the ModelBuilder. Based on what you learned in the guided
tutorial, think about what operations need to be done first to provide inputs for
further analyses. You may create a draft workflow chart now and refine it later
after you have a better idea about the specific steps.
Hint: this problem is solved using two main steps transforming the data and
then integrating the transformed data sets to find the answer.
Submit a flowchart showing the workflow in your analysis
5 marks
4. Another step you need to do before starting to work with your data is to set the
geoprocessing environment. In the Environment Settings dialogue box, set
the parameters as follows:
Current workspace the folder where your input data is stored
Scratch workspace the folder where you would like to keep your output
datasets
Output coordinates Same as layer dem_sk_lcc
Processing extent Same as layer dem_sk_lcc
Cell size
Same as layer dem_sk_lcc
6 | Page
5. You will start your analysis with finding the areas of the province that are at the
elevation of more than 200 meters above the sea level using the Greater Then
tool. Examine the output dataset after it is added to the map document. Based
just on this criterion, where the potential sites for a strawberry farm are located?
1 mark
6. Next you will find which areas are within 50 km distance from a major city using
the Buffer tool from the Proximity set of the Analysis toolbox. Set the
parameters as follows:
Linear unit kilometres
Distance
50
Dissolve Type
All
Why did you need to use a tool from the Analysis tool box and not from a
toolbox that is part of the Spatial Analyst extension?
1 mark
7. Since the buffer dataset you just created in the previous step is a vector dataset,
you will need to convert it to the raster format. Open and examine the attribute
table of this dataset. It contains one polygon entity. Note that all attribute
values for this entity are set to zero (this is the default setting for the first entity
in any dataset). This will create a problem when you will try to convert the
polygons in this dataset to raster as in the raster world zero values may be
understood as the NoData category. You will need to change the value zero in
the Id field to one in order to be able to perform the conversion.
At the top of the ArcGIS window locate the Editor Toolbar button that looks
like this
and press it to open the Editor Toolbar. Click Editor Start
Editing. In the dialogue box that opens, select the name of the buffer dataset
and click OK to make it editable. Open the attribute table of the buffer dataset,
click in the Id cell that contains 0 and type 1 instead. Next click the Editor
option on the Editor Toolbar and choose Stop Editing. Choose yes when
prompted whether you want to save the edits. Close the attribute table and
close the Editor Toolbar. Now you are ready to convert the buffer dataset to
the raster format.
From the Conversion Tools toolbox call up the To Raster Polygon to
Raster tool. In the dialog box that opens, set the following parameters leaving
everything else at default:
Value field
Id
8. Next you will convert the moraine dataset to the raster format. What tool do you
need to use?
Hint: set the value field parameter to Type
1 mark
9. Now examine the agric_lcc dataset. The class values in this dataset correspond
to:
7 | Page
The output data set has the two classes as separate categories, whereas for the
purposes of this assignment it is not important to know that the soil belongs to a
specific class, just that it belongs to one of the two suitable classes. To get read
of the additional information, you will reclassify values in this dataset from 1
and 2 o just 1 using the Reclassify tool.
10.Now you are all set for the next stage in our analysis. You have four datasets
that satisfy the criteria specified for potential locations of a strawberry farm.
Next step is to combine them into one dataset that will clearly show the answer
to question stated at the beginning of this exercise.
Recall that the desirable sites need to be located in areas safe from flood AND
close to large cities AND have soils suitable for agriculture. They also should
NOT be on a moraine.
First you will combine the datasets that contain the first three criteria, between
which a logical relationship AND exists. You will use the Raster Calculator to
multiply values in these datasets.
Can you explain why are we using this method to combine the datasets? What
other tools could be used to perform the same operation?
4 marks
What is the equivalent of this operation among the vector overlay tools?
2 marks
Hint: consider only polygon-on-polygon options
8 | Page
The output dataset created as a result this calculation contains two values 1
and 0. To make further analysis run smother, reclassify these values as follows:
1 to 1 and 0 to NoData.
The output of the reclassification shows all possible locations in Saskatchewan
where the three first criteria are met, i.e., these are areas located more than 500
meters above the sea level, close to large cities and that have soils suitable for
agriculture.
11.What is left in the analysis is to eliminate from this set of areas those that
happen to be located on a moraine. To do that you need to create a mask from
the ratsrized moraines dataset by reversing values in its cells. Those cells that
contain value 1 need to be reclassified to NoData and those that hold NoData
value need to be reclassified to 1. The reclassification will allow you to erase
the areas that do not satisfy the last condition (are on the moraine) when you
combine the results of your previous analysis with the moraines mask.
After you created the mask, use the Raster Calculator to combine the two
datasets.
What tool or operator have you used?
mark
What is the equivalent of this operation among the vector overlay tools?
2 marks
5 marks
9 | Page