13. Geoprocessing Spatial Data
You work for an environmental monitoring company conducting a project in South East Michigan. The project area straddles the boundaries of two adjacent counties, e.g., Wayne and Washtenaw.
As the GIS expert on the project, you are required to assemble several digital map layers pertaining to the geographic extent of the study area. Some of the map layers are available as separate files for Wayne and Washtenaw counties, so you will be required to merge and clip these files in order to create seamless layers for the study area. Other layers are only available for the entire State of Michigan, so you will have to clip these layers to the extent of your study area.
The shapefiles you are required to assemble are census blocks, soils, geology, roads, drinking wells and streams. You are also required to include a digital elevation model (DEM) of the area. You may include optionally include two orthophotos for extra credit.
Complete the task for your company using data from Michigan’s archived CGI.
13.1. Download Data
Visit the Michigan CGI’s archived website at https://web.archive.org/web/20160201222536/http://www.mcgi.state.mi.us/mgdl/?action=thm
Use the table below as a guide to what you should download. Since you are downloading the same type of data for both counties, in all you will download six of files.
Layer Name |
Notes |
Geoprocessing Action |
|---|---|---|
Census Blocks |
Block Groups from MI Geographic Framework (v14a) |
Merge and Clip |
STATSGO Soils |
Available for entire State |
Clip |
Roads |
MI Geographic Framework Transportation (v14a) |
Clip |
Drinking Water Wells |
Located under the Geology Section |
Merge and Clip |
Bedrock Geology |
Located under the GEOLOGY Section. |
Clip |
DEM |
Located under the TOPOGRAPHY Section |
Clip |
Create a folder then unzip the files you downloaded to that folder. Place all of the unzipped files in the same folder. The illustration below shows some of my zipped and unzipped folders.
13.2. Create a new shapefile to represent your Study Area
You are free to decide on the geographic extent of your study area. The only requirement is that it straddles the boundaries of the two counties.
Open any pair of shapefiles for Wayne and Washtenaw Counties (e.g. the census block layers) and use them as a background for digitizing the boundaries of the study area. The shapefile type is polygon, so leave polygon as the Geometry Type.
13.3. Merge Shapefiles
The pairs of shapefiles you downloaded that need merging should be merged before they are clipped. For example, the census block group files for Wayne and Washtenaw Counties need to be merged before clipping. In order to merge the shapefiles, you will use geoprocessing tools from Toolbox.
Click on Vector | Data Management tools | Merge Vector Layers
Fill out the dialog that appears. Under “Input layers”, enter the names of the two files to merge.
Ensure that the path and name of your output are correct, then click Run. The resultant merged shapefile appears as shown below.
Repeat the process for the other pairs of shapefiles you need to merge.
13.4. Clip All Shapefiles to the Extent of the Study Area
Ensure that the Study area shapefile is loaded into QGIS.
Click on Vector | Geoprocessing Tools | Clip.
Fill out the dialog that appears. Note that the Input Features are the features you want to clip, i.e., the Merged Census Blocks. The Clip Feature is the file that serves as the cookie cutter, i.e., the study area polygon that you digitized.
If necessary, re-specify a path and a name for the output. Click Ok
The resultant file should appear as shown in the illustration.
Repeat the process for the other shapefiles you want to clip.
13.5. Merging and Clipping the Digital Elevation Models (DEMs)
DEMs are floating point raster grids containing Z values that represent elevation. The steps for clipping rasters are different compared to those for clipping shapefiles. Below, I illustrate how DEMS are mosaiced (merged) and clipped in QGIS. Click on this link for more information: https://docs.qgis.org/3.4/en/docs/training_manual/processing/cutting_merging.html
Mosaicing DEMs
Add the DEMs for Wayne and Washtenaw Counties to QGIS.
Select the Raster menu, then Miscellaneous | Merge.
Now click the ellipsis (three dots … ) next to the Input layers label to select the layers to merge.
Fill out the dialog as shown below. Click Run to process the data.
The results of the operation should appear as shown below:
Clipping the Mosaic DEM
Add the study area shapefile to the project and drag it above the merged DEM.
Select the Raster menu, then Miscellaneous | Clip Raster by Extent.
Fill out the Dialog as shown below. Note that the output will be saved as a tif image. Click on Run.
The results should appear as shown below.
Deliverables
The deliverables for this exercise are:
One or two professional layouts showing the result of the merged and clipped shapefiles.
A professional layout of the merged and clipped DEM.
The maps should be visually pleasing while at the same time reflecting a high degree of cartographic sensitivity.
13.6. Useful Links
Seven Geoprocessing Tools Every GIS Analyst Should Know https://gisgeography.com/geoprocessing-tools/
Introduction to Raster Data (Part 1): Processing and Visualizing Single-Band Rasters https://www.statcan.gc.ca/en/wtc/online-lectures/qgis/2020019