-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-full.html
262 lines (218 loc) · 7.41 KB
/
index-full.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/white.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>Transit Data Mapping Basics</h1>
<p>Maptime Boston - February 15 2007<p>
<p><a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiR7MfxhIvSAhWGQSYKHXgiCakQFggaMAA&url=http%3A%2F%2Fdownload.qgis.org%2F&usg=AFQjCNHtl6fy9nuDhwICRwagglAT-YRmMQ&sig2=60ka7xgdCzFrmFNf7c_ewA" target="_blank">
Install QGIS</a></p>
<p><a href="https://cran.rstudio.com/" target="_blank">
Install R</a></p>
<p><a href="https://www.rstudio.com/products/rstudio/download/" target="_blank">
Install RStudio</a></p>
<p><a href="" target="_blank">
Download Zip Files</a></p>
</section>
<section>
<h1>Where do you expand a station?</h1>
<p>MBTA Green Line</p>
<p>New York MTA 2nd Avenue Subway<p>
</section>
<section>
<h1>Getting Data</h1>
<p><a href="http://www.mbtabackontrack.com/" target="_blank">
MBTA Back on Track
</a></p>
<p><a href="http://realtime.mbta.com/portal" target="blank">
MBTA Developer Portal
</a></p>
<p><a href="http://www.mass.gov/anf/research-and-tech/it-serv-and-support/application-serv/office-of-geographic-information-massgis/datalayers/mbta.html" target="blank">MassGIS Infrasturcture
</a></p>
<p><a href="http://web.mta.info/developers/">MTA Developer Portal
</a><p>
<p><a href="https://transit.land/">Transit.land
</a></p>
</section>
<section>
<h1>Kinds of Transit Data</h1>
<p>Shapefiles</p>
<p>Aggreate Dataset (e.g. CSV)</p>
<p>Historal Archives (e.g. CSV)</p>
<p>Realtime API Datafeed (e.g. GTFS)</p>
<section>
<h1>Mapping MBTA Green Line's Reliability</h1>
<p><a href="http://www.mbtabackontrack.com/performance/index.html#/explanations#reliabilitysubway" target="_blank">
How often do I have an extended wait time?</a></p>
</section>
<section>
<p>Open TDashboardData_reliability_20160801-20160831.xlsx</p>
<p>Or download the data. But you must convert it to the a xlsx file.</p>
<p><a href="http://www.mbtabackontrack.com/performance/index.html#/download" target="blank"> MBTA On Time Performance</a> </p>
</section>
<section>
<p>Open mbta_station.csv</p>
<p>Source is from MBTA Rapid Transit Station shapefile, with some manual clean up.
</section>
<section>
<p>Launch R Studio</p>
</section>
<section>
<p>R Studio Overview</p>
<img src="./img/rstudio.png" width="1024"/>
</section>
<section>
<p>File -> Open File -> greenline_analysis.R</p>
<img src="./img/openfile.png" width="1024"/>
</section>
<section>
<p>"Run" through each step </p>
<img src="./img/openfile.png" width="1024"/>
</section>
<section>
<p>Open Carto</p>
</section>
<section>
<p>Load New dataset</p>
</section>
<section>
<p>Make Static Map</p>
</section>
<section>
<p>Select avg(rely) and Choose Color</p>
</section>
<section>
<p>Make Animated Map</p>
</section>
<section>
<p>under XXXX: Choose Quantile, rely, and color</p>
<p>under XXXX: Choose Service Time</p>
</section>
<section>
<h1>Mapping Boston Rapid Transit Station</h1>
<p>Who gtes a new station?</p>
<section>
<p>Open a new QGIS file</p>
<img src="img/02.png" width="1024">
</section>
<section>
<p>Open a new QGIS file</p>
<p>Load Zipcode Boston shapefile</p>
<p>Save As: zip_nad83.shp</p>
<p>Select NAD_1983_StatePlane_Massachusetts_Mainland_FIPS_2001_feet</p>
</section>
<section>
<p>Image</p>
<img src="img/02.png" width="1024">
</section>
<section>
<p>Load Rapid Transit Stations Shapefile</p>
<p>Save As: Filename: MBTA_NODE_WGS84.shp</p>
<p>Select NAD_1983_StatePlane_Massachusetts_Mainland_FIPS_2001_feet</p>
</section>
<section>
<p>Where is downtown?</p>
<p>What areas are being served and not served?</p>
</section>
<section>
<p>Load Environmental Justice Shapefile</p>
<p>Save As: Filename: ej_nad83.shp</p>
<p>Select NAD_1983_StatePlane_Massachusetts_Mainland_FIPS_2001_feet</p>
</section>
<section>
<h1>Environmental Justice Blocks</h1>
<p>What are they?</p>
<p>What are their categories?</p>
</section>
<section>
<p>Select the EJ Blocks layer</p>
<p>Find the EJ Blocks contained within zip_nad83_mbta</p>
<p>Vector -> Research tools -> Select by Location</p>
<p>Layer to select from: ej_nad83</p>
<p>Additional layer: zip_nad83_mbta</p>
<p>Geometric predicate: intersects</p>
</section>
<section>
<p>Select for INCOME block</p>
<p>Select by Attribute = Income = “I”</p>
</section>
<section>
<p>Save selected features as a new layer</p>
<p>Select Zip_nad83 layer</p>
<p>Edit -> Copy features</p>
<p>Edit -> Past features as -> New Vector Layer:</p>
<p>Select NAD_1983_StatePlane_Massachusetts_Mainland_FIPS_2001_feet</p>
<p>File name: ej_nad83_mbta.shp</p>
</section>
<section>
<h1>Analysis</h1>
<p>What are possible relationships to between these blocks and the stations?</p>
</section>
<section>
<p> Install NNJOIN plugin</p>
</section>
<section>
<p>Find Environmental Justics Blocks Near Neighboring MBTA Station</p>
<p>Input vector layer: el_nad83_mbta</p>
<p>Join vector layer: mbta_nad83</p>
<p>Output layer: ej_near_mbta_nad83</p>
</section>
<section>
<p>Create Categories</p>
<p>Right Click -> Layer Properties -> Categorized:</p>
<p>Select Graduated</p>
<p>Column: distance</p>
<p>Color Ramp: Blues</p>
<p>Mode: Quantile</p>
<p>0.00 - 500</p>
<p>500-1000</p>
<p>1500-2000</p>
<p>2000-22561.92(default number)</p>
</section>
<section>
<h1>Examind your Map</h1>
</section>
<section>
<h1>Thanks to:</h1>
<p>You, Maptime Boston, Eric Brelsford</p>
</section>
<section>
<p></p>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
history: true,
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>