Buffer Exercise
Vector Analysis
What this module covers:
- Buffer polylines
- Join census housing (home values) to census tracts (shapefile)
- Intersecting vector layers
Objective:
Quantify total home value at risk within landslide/mass-wasting and fautls.
Data Collection: (there needs to be instructions/quick lesson on each of the collection sources)
- Census housing data - American FactFinder
- Census tracts - TIGER Data
- Quaternary faults - USGS
- Washington seismogenic features - REQUIRES GDAL filegdb driver!
-
Washington streams/rivers - USGS National Hydrography Dataset
- faults_100k - [source]
- housing-data.zip
Data Wrangling:
Wrangle Census Data:
Luckily, the Census data has already been wrangled. Census data can sometimes be tricky.
High-risk rules:
- within 100m of fault lines
- within 50m of rivers/streams
- within soft geologic areas
- Open QGIS and configure project workspace.
- Import data:
- HINT: The project projection will default to the first layer that is added to the project (See lower right of image below: EPSG:2927).
- Add Vector Layer:
fault_100k.shp
- Buffer fault lines to 100m:
- Menu Bar > Vector > Geoprocessing Tools > Buffer(s)
- Configure inputs as follows:
Input vector layer: fault_100k
Buffer distance: 100
Output shapefile: fault_buffer_100m.shp
Add results to canvas: (Checked)
Click OK to perform analysis, Close to exit the tool
- Zoom in to a buffer, close enough to see the width
- Open the meaure tool
- Measure the width of the buffer. Notice how the total width is only about 62 meters, or 100 feet. Current map units are determined by the CRS, in this case EPSG:2927 is in US feet and we need meters. Simply changing the CRS in Project Properties does not give us the correct results- this is still measured from EPSG:2927 US feet.
Important:
There are two methods to perfoming a buffer analysis on our shapefile. The problem here is that our CRS is EPSG:2927 (in US feet) and the buffer distance is based on map units (still US feet). The two methods are: convert 100 meters to US feet and use this value in the buffer analysis while maintaining EPSG:2927 (in US feet); OR, reproject the layer thus creating a new file with a CRS in meters (correct map units), and then reprojecting back to EPSG:2927. We’ll go with the former.
- Now we need to perform the buffer analysis with the correct method. Remove the incorrect buffer layer: fault_buffer_100m.shp
- Add Vector Layer:
- NHD_MajorStreams.shp
- NHD_MajorStreams.shp
- Open the buffer tool:
- Menu Bar > Vector > Geoprocessing Tools > Buffer(s)
- Buffer fault_100k:
- Configure inputs as follow:
Input vector layer: fault_100k
Buffer distance: 328
Output shapefile: fault_buffer_100m.shp
Add result to canvas: (Checked)
Click OK to run (overwrite necessary), and CLOSE to exit tool
Reminder:
Buffer distance = 100 meters * 3.28084 feet = 328.084 feet
1 meter = 3.28084 feet
- Configure inputs as follow:
- Confirm 100 meter buffer on faults:
- Open measure tool and confirm 200 meter total width (100 meters * 2 = 200 meters)
- Open measure tool and confirm 200 meter total width (100 meters * 2 = 200 meters)
- Repeat buffer with NHD_MajorStreams.shp
- Configure inputs as follows:
Input vector layer: NHD_MajorStreams
Buffer distance: 164
Output shapefile: streams_buffer_50m.shp
Add result to canvas: (Checked)
Click OK to run, CLOSE to exit tool
Reminder:
Buffer distance = 50 meters * 3.28084 feet = 164.052 feet
1 meter = 3.28084 feet
- Configure inputs as follows:
- Confirm 50 meter buffer on streams.
References: