Massachusetts Institute of Technology
Department of Urban Studies and Planning


11.520: A Workshop on Geographic Information Systems

11.188: Urban Planning and Social Science Laboratory

Lecture 4: Databases, Geoprocessing, and Identifying Spatial Criteria

September 26, 2007, Joe Ferreira

(Based mainly on notes by Mike Flaxman)

Administrative notes:

  • Homework set #1 due in 1 week (Weds. Oct 3 th via Stellar)
    • Have you started yet? Read it over, check out the datasets, try the methods, spread out the work
    • Waiting until the end will be frustrating and stressful!
  • Lab Exercise #2 due today, Sept. 26 (at the start of the class)
  • Lab Exercise #3 due Monday Oct 1 (at the start of the lab)

 

Databases -in our case, managing tables of potentially inter-related textual information and associated geometry

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

Notes:

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

n                   Relationships between Data Models & Spatial Questions

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

    • Disaggregate using attributes

Example: Classify shopping centers into five classes based on square feet

    • Aggregate using attributes

    Example: Reclassify 27 land use types into built/unbuilt

    • Disaggregate spatially

    • Example: shopping centers near major highways or not

    • Aggregate spatially

    • Example: treat roads as unified linear object based on road type (regardless of digitization segments or name)

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 Commercial Shopping Center Site Selection

o      Recall powerpoint slide example mentioned last week: by Edens & Avant and RPM consulting

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