11.188: Urban
Planning and Social Science Laboratory
|
11.205: Intro to Spatial
Analysis (1st half-semester)
|
Which Cambridge
house sales fall within which census blockgroups
|
|
Which blockgroups are in
which Mass Town?
|
|
Which roads are in the flood
plain?
|
|
Which shopping centers are
close to major highways
|
(1) Site Selection for Low Cost Grocery Store Chain
More
spatial data processing
Spatial
Analysis Example - Locating a Shopping Center
Data
Required
Spatial
Analysis Process
Additional
criterion
Cut out the industrial area from two block groups near Sherman and Walden St. in Cambridge (near Fresh Pond). The folder, cambridge_lecture7qgis.zip, in the class data locker contains all the files needed for this example. To illustrate the process using small datasets, we extracted as separate shapefiles two block groups (from cambbgrp) and all the 'industrial' land in Cambridge (from camb_area_lu_1999).
Cambridge block groups: STCNTRBG
= 250173546003 and 250173546001 |
|
Open 'Processing / Toolbox' and choose
'Difference' option within 'vector overlay'
|
|
Cut industrial land out of the two block
groups using the 'difference' tool
(Input layer is camb_bg_fresh_pond to
get parts of it that are *not* within industrial zones.)
|
|
Log tab of 'difference' tool reports output of running python algorithm. | |
End up with the industrial area cut out
from the two block groups
NOTE: right-side block group now
consists of two polygons.
|
|
BEWARE: all attribute values are retained in attribute table - even if no longer correct (e.g., area, perimeter, and landacre). You can recalculate area and perimeter, but the change in landacre is unknown. (Do you understand this?) | |
Use 'Field Calculator' to recalculate last column ('tmp') or add new field so it shows the new area of each block group. | |
Note that the new area of each block groups is now saved in the 'tmp' field. |
Example used Color Orthophotos from MassGIS
QGIS can acces WMS/WMTS compatible web services provided by
MassGIS
https://www.mass.gov/guides/connecting-to-massgis-2019-ortho-image-web-service
This is the URL for the layer we want: Massachusetts USGS
2019 Color Orthophotos:
https://tiles.arcgis.com/tiles/hGdibHYSPO59RG1h/arcgis/rest/services/USGS_Orthos_2019/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
MassGIS provides lots of data layers:
https://docs.digital.mass.gov/dataset/massgis-data-layers
Here is the land use layer for all of Massachusetts:
https://docs.digital.mass.gov/dataset/massgis-data-land-use-1951-1999
Homework
#2 (now online)
Part 1 (due March 19): SQL queries in QGIS to slice, dice and aggregate census data
Part
2 (due March 26): Find good location for senior center in
Cambridge
Analogous
to siting the grocery store in the 'GIS marketing
slides' example
This will take some time! Spread out the work!
<< This section illustrates
the ERASE operation using ArcGIS software >>
ArcGIS Example using 'ERASE' Operator:
Cut out the industrial area from two block
groups near Sherman and Walden St. in Cambridge (near Fresh
Pond). The folder, cambridge_lecture7.zip,
in the class data locker contains all the files needed for this
example.
Cambridge block groups: STCNTRBG
= 250173546003 and 250173546001 |
|
Choose the ERASE extract tool in
ArcToolbox
|
|
Use the industrial land use boundaries
to erase the industrial parts of the two block groups
|
|
End up with the industrial area cut out
from the two block groups
|
|
BEWARE: all attribute values are retained in attribute table - even if no longer correct (e.g., area, perimeter, and landacre). You can recalculate area and perimeter, but the change in landacre is unknown. (Do you understand this?) | |
Note that the new area of the block groups is reduced by the erased area. |
<< Remainder is only relevant for those using ArcGIS software >>
ArcGIS Example of 'polygon-in-polygon' operation
(to
find which blockgroups are in which town for your
use in Homework #2)