In-class Exercises
Part 1: Geocoding
- Download today's data.
- Open the Census Bureau's batch geocoder.
- Geocode the CSV file in the folder Community Health Centers named Community_Health_Centers_for_census_geocoder.
- Open the result in QGIS.
Part 2: Hexbins
Use hexbins to look at the density of points.
- Open the shapefile in Inside Airbnb.
- Move your project into a projection where you know the units (eg, 2263 is in feet).
- Use the QGIS search bar to search for Create grid.
- Select Hexagon for the grid type, set the grid extent to Use layer/canvas extent > Use extent from (your layer name).
- Set the Horizontal spacing and Vertical spacing to 1000 feet to start.
- Pick a suitable place to save to and create the grid.
- If the grid's hexagons are too large or too small, repeat the process but change the Horizontal spacing or Vertical spacing. These determine the height and width of the hexagons.
- Count the number of points in each hexagon and make a choropleth with the resulting layer.
Part 3: Heatmaps
Using the same points layer as last time, make a heatmap.
- Search for Heatmap (Kernel Density Estimation) in the QGIS search box.
- Set the radius to 2000 feet.
- Set the rows to 3000. This is the number of rows of pixels in the resulting raster. The columns should update automatically.
- Style the output raster with a Singleband Pseudocolor render type and select a color ramp.
- Create a few more heatmaps with varying radii and resolution (rows and columns).