11.520: A Workshop on
Geographic Information Systems |
11.188: Urban Planning
and Social Science Laboratory |
n
Methods of Selecting Features
o
Manually
– in map or tabular view
o
Simple
Attribute Queries, Compound Queries
o
Spatial
Selection Queries
n
Manipulating
and Extending Tabular Data
o
Adding
Attribute Columns
o
Calculating
new attribute values
o
Basic
statistics on selected features
o
Summary
statistics
n
Using
Selected Sets
o
Exporting
Data Subsets (replicating data subset)
o
Using
“Definition Queries” as filters
Simple
Attribute Queries in GIS
Basic format
<Attribute> <Operator>
<Value>
Attributes delimited
with square braces, i.e.: [Landuse]
String (text) values
typically single quote delimited
'Commercial'
Exact syntax depends on
back-end database (aargh!)
Some require
double quoted strings
Example
[Landuse]
= 'Commercial'
ArcGIS Interface Dialog perculiarity:
double click to load attribute names or values
single click for operators
Compound Attribute Queries
Remember: must repeat
the attribute name
[Landuse] = 'Commercial' or [Landuse]
= 'Industrial'
*not* [Landuse] = 'Commercial' or 'Industrial' (missing required repetition of attribute name)
*not* [Landuse] = Commercial (missing required single quotes around text)
Can build up based on
current selection set
Two pass
query: [Landuse]
= 'Commercial' first
then, add to selection [Landuse] =
'Industrial'
Fun
with Selections
By default, processing operations
occur based on selected features only
For example: to buffer
commercial land uses, first select commercial, then buffer
Subsetting based on selection
Simple, important,
poorly documented workflow
Create a selection, then
"export data" to new file
(Sorry no cut and
paste!)
In the attribute table, calculations
done only on selected features
Useful for calculating
new attributes, often for reclassification/aggregation
Example: ranking store
location suitability based on zoning layer
Logic: best = commercial or mixed use
moderate = industrial
worst = residential
Strategy:
Create
new rating attribute [rating] in zoning table
Select
best features, calculate rating attribute = 'best'
Select
moderate features, cal rating 'moderate'
etc.
Advantages/Disadvantages:
Permanent
change to database, ranking result obvious
Method *not*
obvious after the fact (requires external documentation)
Single,
transferable data set
Requires
"write" permission on the database
Spatial Selections
(This bit different than
other databases)
Can select features
based on spatial relationship to other selected features
Will need this for your
homework
Intro
to Geoprocessing
o
Data
Models Vary in Degree of
§ Geometric refinement
· What’s the MMU (minimum mapping
unit)?
How are contiguous features
segmented?
§ Attribute Refinement
· How many classes of land use are
recorded? (urban/suburban or 27 types?)
· Are the aspects you need directly
coded at all? (traffic congestion, historic building
quality?)
§ Temporal Refinement
· How up to date are your data?
· Are all layers in temporal synch?
· Is your question about current
conditions, or really about future conditions?
o
Common
cases when your data model doesn’t match your question
Example: Classify shopping centers into five classes based on square feet
Example: Reclassify 27 land use types into built/unbuilt
o
Spatial
aggregation and disaggregation require more than
simple selection – require creating new geometries based on combinations of
existinf geometries
n
Some
Useful and Common Geoprocessing Operations
o
Spatial
data subsetting using “Clip”
§ Selects those features within a
polygonal geometry, breaking partially included features as needed
o Buffering
§ Creates new geometry representing an area within a given distance from selected features
§ By default creates one buffered object per feature. Often useful to “join” output geometries
In Class Example: Site Selection for Low Cost
Grocery Store Chain
n
Conceptual
Model
o
Brainstorming
Criteria
n
Case
Study Example
o
Factors
used in
o
Recall powerpoint slide example mentioned last week:
n
What
Were Major Differences?
o
Consideration
of future growth, not just current conditions
Created by Zhong-Ren Peng and Mike Flaxman, 2003-2006
Last modified 26 September 2007 by Joe Ferreira
Back to the 11.520 Home Page.
Back to the CRN Home Page. For information about this page please send e-mail to 11.520staff@MIT.EDU