0% found this document useful (0 votes)
15 views4 pages

CIVE7342 Lab4 Preparing Geodatabase

Uploaded by

NIKHIL KUNDETI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

CIVE7342 Lab4 Preparing Geodatabase

Uploaded by

NIKHIL KUNDETI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CIVE 7342: Engineering GIS

Lab 4: Prepare GIS data for maps of kids with elevated levels of lead

Due: September 19, 2024 11:59 PM

Lead poisoning can cause lifelong learning and behavior problems. Although highly toxic lead-
based paint was banned in 1978, according to the Centers for Disease Control and Prevention
(CDC, https://www.cdc.gov/lead-prevention/prevention/paint.html), approximately 29 million
housing units have lead-based paint hazards including deteriorated paint and lead-contaminated
house dust, and about 2.6 millions of these are home to young children. Suppose that a lead hazard
prevention program needs your help to prepare data for two maps for local pediatricians showing
how elevated levels of lead and poor housing conditions may be affecting children. In this lab, raw
data written in text or excel formats will be provided. You will convert the data to the geodatabases
in ArcGIS Pro for use in mapping cases of elevated levels of lead poisoning.

Get set up
Create an ArcGIS project for lab4.
• Start ArcGIS Pro, click “Map” under “New Project”. Create a new project and name it with
Lab4_YourFirstName_YourLastName.
• Download Lab4.zip from Canvas, extract the two data folders to your lab4 project directory.

Import GIS shapefiles


Import the GIS shapefile showing census tracts into your geodatabase. Right click Catalog /
Project/ Databases / File Geodatabase / Import / Feature Class(es), select the Tracts feature from
the shapefiles as inputs. Run the Geoprocessing tool to add the feature to the project’s geodatabase;
then add it to the map.

Edit and import raw data into geodatabase


Import the following tables from the lab4_raw_data folder into your file geodatabase, and add
them onto your map. The .csv file needs to be edited prior to importing it. The geographic identifier
42003xxxxxx are the geocodes developed by the American National Standards Institute (ANSI),
e.g., 42-State, 003-County, etc. A prefix of 1400000US in the .csv file describes the type of data
represented. In the prefix: the first three digits identify the summary level of the data, 140 means
“State-County-Census Tract”; the next four digits are the “geographic variant” and “geographic
component”, which in most cases are just set to 00 and 00; the last two digits in the prefix provides
an internationalization by using the International Standards Organization’s two-character country
code, and US is for the United States of America. Below are summaries of the three data files.

1
CIVE 7342: Engineering GIS

• Median_Year_Built.csv: Excel spreadsheet of median years when houses were built by


census tract. The last column represents the median year houses were built, tracing back to
1939. For the numbers listed in the last column, zero values indicate no data available, and
1939 indicates that houses were built in that year or earlier.
a) Open the table in Microsoft Excel (or other software) and work on the first two
rows. For the first row, change the names so that they are self-documenting and
contain no special characters or blanks (e.g., no *&%$@!~`,, “_” can be used), we
will use these for attribute names. For the second row, delete it.
b) Import the .csv file as “Tables(s)” to your file geodatabase.
• Cases.txt: Text file of the number of cases of children who have elevated blood lead levels
(BLL) per census tract in Allegheny County, PA. Each record contains the number of cases
per census tract. Import the text file as “Tables(s)” to your file geodatabase and add it to
the map as standalone table.
• Complaints.txt: Text file of the number of public housing complaints per census tract.
Some of the tracts are outside Allegheny County, and some tracts within Allegheny County
have no complaints and therefore are not included in this data file. Import the text file as
“Tables(s)” to your file geodatabase and add it to the map as standalone table.

Clean and join data


Join the Cases, Complaints and Median_Year_Built tables to the Tracts table. Below is an
illustration of how we can join tables with ArcGIS:

There may be multiple attributes that can be used to join the tables. Here is an example of using
the geographic identifiers to join the tables:
• Select Tracts in Contents, then Data / Joins / Add Join. Input Table: Tracts, Input Join Field:
GEOID10, Join Table: Cases, Join Field: Tract10. Check “Keep all input records”. Validate
Join / OK.

2
CIVE 7342: Engineering GIS

*Note: If the join had no matches, one possible reason is that the fields used to join tables
have different data types (go to Fields / Data Type to check for that). Here are two means
to change the data type of an existing field in ArcGIS Pro: https://support.esri.com/en-
us/knowledge-base/how-to-change-the-data-type-of-an-existing-field-in-arc-000023089
• Repeat the above step to join the Complaints and the Median_Year_Built to the Tracts.
When validating these joins, if you see “WARNING 002988: The Name Contains Invalid
Characters”, it may indicate that there are multiple OBJECTID fields after the previous
join, i.e., there are two OBJECTIDs in Tracts after the first join, after the second join, there
are three OBJECTIDs, etc.; You can ignore the warning or delete the duplicated fields.
• Export the Tracts (with the newly joined tables) to your geodatabase as
Tracts_Cases_Complaints. This will permanently join the tables and they will now be part
of the new feature class’s attribute table. Data / Export Features
• Delete redundant attributes of the Tracts_Cases_Complaints table.
• Observe the changes in the variable values and the total record numbers in Cases,
Complaints, and the joined table. Hint: Any records from Complaints that are from outside
the county will be dropped, and any tracts within the county that don’t have complaints
will have null values for those tracts.
• In Tracts_Cases_Complaints, change the <Null> values of Complaints to 0. Here is an
example of how to change values: https://pro.arcgis.com/en/pro-
app/latest/help/data/tables/find-and-replace.htm

Create maps to show the spatial pattern


We will create two maps to show the spatial correlations between different variables.
• Add the Tracts_Cases_Complaints to your Contents if it is not already there. Make two
copies of it in the Contents. Name the copies with “Number of kids with elevated BLL”
and “Number of housing complaints”.
• Highlight Tracts_Cases_Complaints in Contents, create a colormap to represent the house
median construction years, e.g., Symbology / Primary symbology: Graduate Colors, Field:
Median_Construction_Year.
• Highlight “Number of housing complaints” in Contents, create symbols to represent the
complaints within each tract: Symbology / Primary symbology: Graduate Symbols, Field:
Complaints. Adjust the colors and symbol sizes to fit the map.
• Highlight “Number of kids with elevated BLL” in Contents, create symbols to represent
the cases within each tract: Symbology / Primary symbology: Graduate Symbols, Field:
Cases. Adjust the colors and symbol sizes to fit the map.
• Create layouts and export maps for lab report.

3
CIVE 7342: Engineering GIS

Save project, write a short report for lab4


Save you project. Prepare a lab report Lab4_Report_YourFirstName_YourLastName.docx.
Information listed below should be included in the report:
• Title page with report title, your name & email, and the report date.
• A map showing the house median construction year overlain by the housing complaints,
along with legends.
• A map showing the house median construction year overlain by the reported cases of kids
with elevated BLL, along with legends.
• A summary of your observation of the spatial pattern.
Each figure should have a caption.

What to turn in

• Report Lab4_Report_YourFirstName_YourLastName.docx (or a .pdf file)


• Folder Lab4_YourFirstName_YourLastName compressed as a zip file

You might also like