Lab 05 - Building a GIS database

Learning Objective

This lab will teach you how to build a GIS database for Douglas County, KS using existing digital data from the Internet. First you will download data from Kansas Geospatial Community Commons (provided by Data Access and Support Center, or DASC). Then you will define coordinate systems and project the data to Kansas State Plane Coordinate System NAD83 meters North Zone. You will then make a second map of a county of your choice using the USGS National Map Website as your data source.

The primary goal of this lab is to learn how to retrieve GIS data. Gathering data is often one of the more difficult challenges for beginning GIS users, but there is a wealth of data available on the Internet for free, it just takes a little Google-foo & massaging to get what you want.

Tutorial

Part 1: Creating a GIS Database

1. Getting started: Create the Lab05 folder structure

  • Create a Lab05 folder.
  • Within that folder, create Part1 and Part2 folders.
  • Within the Part1 folder, create three new folders called…
    • DataIn (this will be the folder you download data into)
    • DataClip (this folder will be for data that has been clipped to the Douglas County boundaries),
    • DataProj (this will be the folder in which you will save data that you have projected and renamed)
  • Within the Part2 folder, create the same folder structure.

2. Download data from the Kansas Geospatial Community Commons

As we saw in lab 1, a geoportal is a great place to find GIS data. For data related to Kansas, the Kansas Data Access Support Center (DASC) is the place to be.

  • Go to DASC
  • In order to download data, you need to create a username and password. To do this, click on “Register” in the upper right corner of the webpage. Feel free to give the KU Department of Geography’s address and phone number as your information:
    • 1475 Jayhawk Blvd, 213 Lindley Hall, University of Kansas Lawrence, KS 66045-7613
    • (785) 864-5143
  • Once your account has been confirmed, click on “Catalog.”
  • We are interested in the following data:
    • Census blocks
    • County boundaries
    • Hydrography features
    • Roads
  • Let’s start with the census blocks.
    • Click the Administrative Boundaries category and then click Blocks from the list.
    • Click the File Downloads tab in the top panel of the web page.
    • Right-click the TIGER2012_Blocks.zip (2012- Includes 2010 demographic data) link and select Save Link As… When prompted for a location, browse to your Part1 DataIn folder and save it there.
    • Follow the same procedure to download Counties (TIGER2010_Census_County.zip (2010- Includes demographic data) located under Administrative Boundaries).
  • Now we want to download hydrographic (streams and lakes) data. Under the Water Resources category in the Kansas Water Features data you will find
    • NHD Flow Lines (NHD_FLOWLINES_SHP.zip)
    • NHD Water Areas (NHD_AREA_SHP.zip)
    • NHD Water Bodies (NHD_WATERBODIES_SHP.zip) which are part of the National Hydrography Dataset (NHD). Download them all to your Part1 DataIn folder. (Note: Make sure you’re downloading shapefiles—the first option listed—rather than file geodatabases.) These are big files, so be patient while they’re downloading.
  • Lastly, download the TIGER Roadways – 2012 shapefile (TIGER2012_Roads_Info.zip under the Transportation category). Your final folder layout should look like so:

3. Unzipping data

  • Using Windows Explorer, extract all the zipped files you downloaded. (One way to do this is to right-click each folder and select Extract All. Another way is to select all the folders, right-click and select 7-Zip, and then select Extract Here.)
  • Open a new map in ArcMap and add all the data you just examined.
  • Save your ArcMap document as GEOG358Lab05_Part1_YourLastName.mxd in your Lab05 folder.

4. Clipping data

To clip data, we theoretically need two pieces of information, the extent we want to clip to and the features we want to clip. ArcMap follows this convention, although there are a number of caveats to how it is implemented, and there are several ways to accomplish a clip. Here we will select a single feature from a layer, and the extent of that selection will dictate the extent of the clip.

Selecting an area to clip to:

  • The layers in your map cover the entire state of Kansas. Since we are making a map of only Douglas County, we will clip off the rest of the data we don’t need. First, we need to select the boundaries to use in our clip analysis. Open the attribute table of Tiger2010_Census_County (Right-click | Open Attribute Table), click the Table Options button (upper left corner) and select Select By Attributes….
  • In the box near the bottom of the window, use the mouse to enter the expression:
NAME10 = Douglas
  • This “code” is a variation of SQL (Structured Query Language, remember this from Lab 2?) It really cares about syntax, so it’s usually best to have ArcMap build the code for you (by using the mouse).
  • When that is done click the Verify button. If there are no problems, click Apply; if there are problems, double- check to make sure you typed the expression correctly.
  • Douglas County should now be selected in your attribute table and map.
  • Close the attribute table.

Clipping features:

  • Open ArcToolbox. Under Analysis Tools | Extract, double-click the Clip tool.
    • From the dropdown menu (click the down arrow) for Input Features, select the Tiger2010_Roadways.
    • From the dropdown menu for Clip Features, select Tiger2010_Census_County.
    • For the Output Feature Class, browse to your Part1 DataClip folder and save the file as Tiger2010_Roadways_Clip.shp.
    • Press OK to execute the tool.
  • When the Clip tool has finished, turn off all layers in the table of contents except for Tiger2010_Census_County and Tiger2010_Roadways_Clip. If the roads are only shown in Douglas County, your clip was successful.
  • Run the Clip tool again for the other layers: NHDArea, NHDWaterbody, NHD FlowLines and Tiger2012 _Blocks. (Use those layers as the Input Features; Tiger2010_Census_County will be your Clip Feature in every instance. Make sure all output goes into your Part1 DataClip folder.) These steps will take time, so please be patient!
  • Finally, right-click the Tiger2010_Census_County layer, select Data, and select Export Data…. Make sure the Export drop-down menu is set to “Selected features”. Change the output destination to your DataClip folder, change the Save as type to Shapefile, and save the file as DouglasCounty.shp. (This will create a layer of just Douglas County.)
  • Once all clipping is completed, remove the original (i.e., unclipped) layers from your table of contents.

5. Re-project the shapefiles to Kansas State Plane

  • In your ArcMap document, you should now have all the newly clipped shapefiles in your Data Frame.
  • Open ArcToolbox, go to Data Management Tools | Projections and Transformations, and double-click the Project tool.
  • Re-project each of the clipped shapefiles to NAD 1983 StatePlane Kansas North FIPS 1501 (Meters).
    • Projected Coordinate Systems -> State Plane -> NAD 1983 (Meters) -> NAD1983 StatePlane Kansas North FIPS 1501 (Meters).prj)
      • Note: You can search WKID: 6466
    • Make sure you save the new files to your Lab05 DataProj folder.
  • Remove all un-projected data from your map.
  • Right-click the data frame (Layers) and select Properties…. Click the Coordinate System tab and change the coordinate system to NAD1983 State Plane Kansas North FIPS 1501 (meters).prj (the same as above).
  • Zoom in to Douglas County, take a screenshot of your entire screen, and upload the screenshot to Blackboard. It should look something like:

Part 2: Creating your own county map

The following section involves obtaining spatial data from the United States Geological Survey National Map website. We will create another map of a different county. For this part, we will use the new National Map website to make a map of a county outside of Kansas. If you are not from here, you can select your home county, or pick one you like. If you lack imagination, use one of the following:

  • Aroostook County, in Northernmost Maine
  • Miami-Dade Counties in Southernmost Florida Do not select Douglas County.

1. Download data from USGS National Map

  • Go to The National Map

  • Zoom into your area of interest until you can read city and county names on the map.

  • Make sure the Current Extent button is selected at the top.

  • Toggle on Boundaries and Transportation. Make note of the other types of layers that are available on this site. It is a great resource for your final project.

  • Under the catagories you toggled on, make sure you are getting either shapefiles or GeoTIFF, using the correct extent, and then click Find Products

  • If you did this right, your window should look like so:

  • In the results tab that appears under each layer, you can…

    • Look at the footprint of each layer
    • Look at the metadata for the later
    • Download it
  • Go ahead and download the data into your Part 2 DataIn folder.

    • This process will create separate files for each of the three datasets.
  • Finally, unzip the data.

2. Download data from the Multi-Resolution Land Characteristics (MRLC) consortium

There are several land cover datasets, but perhaps the most pertinent to the US is the National Land Cover Dataset(NLCD), produced by the MRLC Consortium . Some time last year they updated their data policies and, in what I can only surmise was an effort to streamline data distribution system, made it almost impossible to get their data in a usable form without diving into tools unsuited to an intro level class. There are two ways in which you can proceed. If you trust your PC, you can download the whole 1.4 GB NLCD database and then clip to your county. Alternatively, you can download the GAP/LANDFIRE land cover dataset by state and clip from there. Regardless of your final choice, after this step you should have an unzipped geotiff in your folder.

3. Add the data to a new data frame

  • Insert > New data frame
  • Rename the new data frame to part 2
  • Add the data to this data frame
  • you should have the one raster (Land Cover) and two shapefiles (Boundaries and transportation)

4. Re-project the Layers to the appropriate UTM zone projection.

  • To decide which UTM zone is appropriate, remember you have the world at your fingertips (Google it)
  • Check the projection of your raster by inspecting the source tab in its properties window. If it is not in the UTM zone you intend to use, reproject it.
    • Open ArcToolbox and use the Data Management | Projection and Transformations| Raster | Project Raster tool to re-project the rasters to Projected Coordinate systems > UTM > NAD1983 > UTM Zone ??? N.prj
  • Project your shapefiles into the same UTM zone. Data Management | Projection and Transformations| Project.

5. Clip the layers to the area of interest

  • At this point, let’s explore the search function. If we were to phrase what we want to accomplish using GIS terminology, we want to clip a raster to a shapefile. We don’t really know if this is possible, but if we search for “clip” we get several variants including…

  • Lo and behold, the third clip tool (in the Data Management) toolbox seems promising.

  • Go ahead and click on the correct tool and set up the tool like so.

Notes: Again, include .tif in the filename If your area is irregular and you want to make a tight clip (as opposed to an outer bounding box clip), check the “Use input clipping geometry (optional)” box

6 Make a map

  • Produce a map (keeping in mind our cartographic rules) of the reprojected county data containing the following layers: roads on top of the LAND COVER raster. If you would like, the map can show only a zoomed in portion of your county, rather than the whole thing. For this map, you need to include your name, title, legend, scale bar and north arrow. Be sure to save your map. Now export it as an image named yournameLab5Part2.png. Save the .png in your Lab05 folder and upload it to blackboard. Spend, at the very minimum, ten minutes on this, a bad looking map is worse at communicating an idea than no map at all. As a reference, here is what 10 minutes of my time looks like.

You should have two images, which you will submit on blackboard.