-
Notifications
You must be signed in to change notification settings - Fork 0
/
workflow.html
98 lines (89 loc) · 5.79 KB
/
workflow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE HTML>
<!--
Phantom by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Generic - Phantom by HTML5 UP</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Nav -->
<nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav>
</div>
</header>
<nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="background.html">Background</a></li>
<li><a href="redistrictingCriteria.html">Redistricting Criteria</a></li>
<li><a href="redistrictingMethods.html">Redistricting Methods</a></li>
<li><a href="results.html">Results</a></li>
<li><a href="feedback.html">Feedback</a></li>
<li><a href="workflow.html">Workflow</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<div class="inner">
<h1>Workflow</h1>
<h2>Resources</h2>
<ul>
<li>I have a created a <a href="https://github.com/austintolani/stlRedistricting">public Github repository with all code used in this project</a></li>
<li>Read my <a href="./FinalPaper_Tolani.pdf">paper</a> on this project. </li>
</ul>
<h2>Data Sources</h2>
<p>Various data sources were used in this project. For the redistricting analysis, the smallest unit of analysis used was census block groups. Census block groups for the City of St. Louis were downloaded from the <a href="https://www.census.gov/en.html">U.S. Census Bureau’s website</a> . <a href="https://www.census.gov/programs-surveys/acs">The American Community Survey’s</a> 2018 5-year estimates were used to get the most up to date population and racial data for the census block groups. Additionally, boundaries representing various political and geographic units in St. Louis, such as neighborhoods and parks, were downloaded from the City of St. Louis’s Open Data Portal. </p>
<h2>Use of ESRI's Districting Extension</h2>
<p>I used ESRI's Districting extension extensively in this project to both manually create ward boundaries as well as to tweak automatically generated ones. I took the following steps to use this extension:</p>
<ul>
<li>Installed the extension from <a href="https://www.esri.com/en-us/arcgis/products/districting-for-arcgis/overview"> ESRI's website</a>.</li>
<li>Created a new plan, imported the block group shapefile, set the number of wards (14) and assigned the relevant demographic variables.</li>
<li>To import, I created a text field containing the IDs of the block groups and their assigned ward, then used the import plan function. </li>
<li>To export, I simply exported the ward layer as a shapefile.</li>
</ul>
<h2>Use of Auto-Redistrict</h2>
<p>To use Auto-Redistrict, I downloaded the executable JAR file from <a href="http://autoredistrict.org/">autoredistrict.org</a> and installed it on my computer. Once it is installed, importing a shapefile, running the algorithm and exporting the results is relatively straightforward. One thing to note, you must set the District Column to "AR_RESULT" in order to export. </p>
<h2>Use of BARD</h2>
<p>Micah Altman and Michael P. McDonald's paper on Better Automated Redistricting is extremely useful in understanding the software package. Additionally the documentation that comes with the package is also informative. A couple notes on using/installing BARD:</p>
<ul>
<li>In order to install BARD on windows, you must first install <a href="https://cran.r-project.org/bin/windows/Rtools/">Rtools</a>.</li>
<li>When importing shapefiles into BARD, a .GAL file is required, along with the shapefile. This file represents the contiguity of features. The .GAL file is a text file that contains, for each observation, the number of neighbors and their identifiers. This file format is not found in many GIS software, including ArcMap, so I used a free and open source software tool called GeoDa to create this file. <a href="https://geodacenter.github.io/workbook/4a_contig_weights/lab4a.html#gal-weights-file">Click here</a> to learn more about this process. </li>
</ul>
<p>To view the R code I used to generate ward boundaries, <a href="https://github.com/austintolani/stlRedistricting/blob/master/generateWards.R">click here</a>.</p>
<h2>Evaluating Redistricting Criteria</h2>
<p>In order to actually calculate the redistricting criteria for a generated ward boundary, I created a python script and used ArcPy, a Python package, to perform the calculations described by each criteria and output the results. This script allowed me to easily evaluate whether a set of ward boundaries met the criteria described above. To view this script, <a href="https://github.com/austintolani/stlRedistricting/blob/master/Evaluator.py">click here.</a> </p>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<ul class="copyright">
<li>Created by Austin Tolani</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>