Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Data Download and Setup

  1. Create a New Project
    1. Download the BC Boundary File
  2. Downloading Census Data
  3. Pre-Processing
    1. Importing the Census Data
    2. Rename the Variables
    3. Clip the BC_Census_Data Layer

Create a New Project

Open up AcrGIS Pro and create a new project. You can reference the same steps outlined in Module 1 for help creating a project.

1 Name the project BC_Food_Cost

2 Create a new “Feature Dataset” called BC_Census_Data

  • Make sure the feature dataset is in the “NAD 1983 BC Environment Albers” projection
  • See the video below for guidance

View Image in New Tab

Download the BC Boundary File

3 Click the button below to download the BC_Boundary.zip file.

  • Extract the contents of the BC_Boundary.zip file to your newly created BC_Food_Cost project folder.

Download

4 Import the BC_Boundary shapefile to your BC_Census_Data feature dataset.

  • Start by adding the BC_Boundary.shp to the map
    • Check the Spatial Reference System
    • Check the Attribute Table
    • Remove it from the Table of Contents
  • Right click the BC_Census_Data feature dataset
    • Select: Import > Feature Class(es)
    • Choose BC_Boundary.shp then click Okay
  • The newly import BC_Boundary Feature class should automatically be added to your table of contents
    • Inspect the coordinate system to see if it changed
    • You can then delete the original shapefile

View Image in New Tab


Downloading Census Data

We are gong to download population estimates for 2021 using Simply Analytics. You can also find it by Googling “Simply Analytics UBC Library”. One of the first results will be the Library Indexes & Databases page.

1 On the library page, click “Connect to the Resource”. This will redirect you to the simply analytics logon page.

2 Click the link to create a new account. Note you have to connect via the library, otherwise you will be need to login via the UBC VPN first.

Once you’re setup, you can download the data. The video below walks you through using the simply analytics interface. We are going to download the following data:

  • Total Population (2021)
  • Median Household Income (2021)
  • Average Total Expenditures on Food (2021).

The steps outlined in the video are:

1 Create your project to query data.

  • Select study area and inspect default variables.
  • Explore the interface.
  • Watch intro video on Simply Analytics.

2 Query additional variables.

  • Search for food cost.
  • Make sure to select the correct variable.

3 Export the data.

  • Save the project so its easy to come back if needed.
  • Export the shapefile.
    • Make sure all variables are checked.
    • Make sure to export Census Subdivisions.

4 Check your email for the download link. Clicking it will downloaded a .zip folder with a name that starts with “SimplyAnalytics_Shapefiles_” followed by a bunch of gibberish

  • Extract the contents of SimplyAnalytics_Shapefiles .zip file to your newly created BC_Food_Cost project folder as well.

Pre-Processing

Importing the Census Data

We have to do a few things to the data to make sure everything setup and ready so we can conduct our analysis.

1 Import the SimplyAnalytics_Shapefiles using the same steps as above and name it BC_Census_Data

  • Make sure to check the Spatial Reference System before and after the import. Think about:

    • What coordinate system the census data came in from Simply Analytics?
    • What coordinate system we’re using and why.
  • You can delete the original SimplyAnalytics_Shapefiles, but Do Not delete variable_names.txt, we still need it!

2 Rename the SimplyAnalytics_Shapefiles as BC_Census_Data

  • Right click the SimplyAnalytics_Shapefiles and select > Rename

Rename the Variables

3 Rename the Attributes in the BC_Census_Data feature class.

  • Data from simply analytics comes with generic column headers that can be confusing.
  • The simply analytics data comes with a text file containing header names you can reference to give them more helpful names.

Clip the BC_Census_Data Layer

4 Use the Clip Tool to get the BC_Census_Data layer to show the true boundaries of the census subdivisions by using the BC boundary file to remove areas of ocean.

  • The census subdivision from Simply Analytics look pretty funky along the coast and we can use the Clip tool to cut the layer down to size.
    • Use the BC_Census_Data is the Input Layer
    • Use the BC_Boundary as the Clip Layer
    • Name the output BC_Subdivisions_2021_Clip