Skip to content

Commit 1dcddf0

Browse files
committed
slides 02
1 parent d18fff2 commit 1dcddf0

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed
14.3 KB
Loading

slides/02_GitHub-Data/index.html

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,7 @@
5555
background-position: center 1px;
5656
background-size:50%;
5757
}
58-
.git-snapshots {
59-
background-color: #2980b9;
60-
background-image: url(./images/snapshots.png);
61-
background-repeat: no-repeat;
62-
background-position: center 1px;
63-
background-size:100%;
64-
}
65-
.git-areas {
66-
67-
background-image: url(./images/areas.png);
68-
background-repeat: no-repeat;
69-
background-position: center 1px;
70-
background-size:100%;
71-
}
58+
7259
.octocat {
7360
background-color: #fff;
7461
background-image: url(./images/octocat-original.png);
@@ -95,6 +82,12 @@
9582
background-position: center 1px;
9683
background-size:75%;
9784
}
85+
.gh-pages-1 {
86+
background-image: url(./images/gh-pages-1.PNG);
87+
background-repeat: no-repeat;
88+
background-position: center 1px;
89+
background-size:100%;
90+
}
9891
.osm-1 {
9992
background-image: url(./images/osm-1.png);
10093
background-repeat: no-repeat;
@@ -143,23 +136,24 @@
143136
<div>Part 2: Data &amp; GitHub</div>
144137
<div><h2>2 interrelated aims:</h2>
145138
<ol>
146-
<li>Create a place to store &amp; access data</li>
139+
<li>Find a place to store &amp; access data</li>
147140
<li>Get, create, &amp; edit data for the web</li>
148141
</ol>
149142
</div>
150143
<div>Why?</div>
151-
<div>We need to know where our data is</div>
144+
<div>We need to know where our data is so we can get to it when we need it</div>
152145
<div>We need to be able to optimize our data for the web!</div>
153146
<div><h2>Goals:</h2>
154147
<ul>
155148
<li>Get to know geoJSON</li>
156149
<li>Understand the basics of GitHub</li>
157-
<li>Be able to contribute to and make changes to files on GitHub</li>
158-
<li>Get &amp; prepare data for the web</li>
150+
<li>Be able to access and make changes to files on GitHub</li>
151+
<li>Identify tools and sources to get &amp; prepare data for the web</li>
159152
</ul>
160153
</div>
161154

162155
<!--Intro to geoJSON-->
156+
<div>What data formats are we working with usually in GIS?</div>
163157
<div data-bodyclass="gdb purple-text imageTextLight">geodatabase</div>
164158
<div data-bodyclass="shapefile purple-text imageTextLight">shapefile</div>
165159
<div>OK for GIS</div>
@@ -172,7 +166,7 @@
172166
<!--This section contains several slides from Lyzi Diamond: http://lyzidiamond.com/learn-geojson/-->
173167
<div>What is <em>GeoJSON</em>?</div>
174168
<div><em>GeoJSON:</em> geographic data format. (Contains spatial information.)</div>
175-
<div><em>GeoJSON:</em> extension of JSON, with a specific structure.</div>
169+
<div><em>GeoJSON:</em> extension of JSON, with a specific structure.<br><small>(JSON==<em>J</em>ava<em>S</em>cript <em>O</em>bject <em>N</em>otation)</small></div>
176170
<div>This is what it looks like:</div>
177171
<div data-bodyclass="geojson-1"></div>
178172
<div><em>GeoJSON:</em> has room for nested attribute information.</div>
@@ -186,17 +180,19 @@
186180
<div>And it's pretty easy to edit <em>GeoJSON</em>in your browser with a tool called <a href="http://geojson.io/" target="_blank">geojson.io</a></div>
187181
<div>(We'll come back to that.)</div>
188182

183+
<div>We know about a data format (geoJSON)...</div>
184+
<div>Where are we going to <em>store</em> it so it's also <em>accessible</em> for webmaps?</div>
185+
<div>We'll use <a href="https://github.com/" target="_blank">GitHub</a>!</div>
186+
<div>But first...</div>
189187
<div>What is git?</div>
190188

191189
<div><em>git:</em> distributed version control system.</div>
192190
<div>No central source</div>
193191
<div><em>git:</em> allows for collaboration without totally screwing everything up.</div>
194192
<div><em>git:</em> super powerful.</div>
195-
<div data-bodyclass="git-snapshots"></div>
196-
<div data-bodyclass="git-areas"></div>
197193
<div data-bodyclass="octocat purple-text imageTextLight">What is <em>GitHub?</em></div>
198194
<div><em>GitHub:</em> a home for lots and lots of code repositories.</div>
199-
<div><em>GitHub:</em> interacted with using <em>git</em>.</div>
195+
<div><em>GitHub:</em> helps you interact with <em>git</em>and <em>beyond</em>!</div>
200196
<div><em>GitHub:</em> provides easy-to-use tools and tutorials for using and learning git to collaborate on and contribute to projects.</div>
201197
<div class="center-text">git version control<br /><em>+</em><br />storage<br /><em>+</em><br />social</div>
202198
<div>Why GitHub?</div>
@@ -207,17 +203,18 @@
207203
<li>Permalinks</li>
208204
<li>Collaboration</li>
209205
</ul>
210-
</div>
206+
</div>
207+
<div>And since we <em>looove</em> maps...</div>
211208
<div><em>GitHub:</em> best friends with <em>GeoJSON</em>!</div>
212209
<div>Support for geo (especially geoJSON)</div>
213210
<div><h2>Support for geo</h2>
214211
<ul>
215212
<li>Store &amp; access data
216-
<ul>
217-
<li><a href="http://vimeo.com/106228441">"Small Town GIS Leveraging Github"</a> - Aaron Racicot at FOSS4G2014</li>
213+
<ul>
214+
<li>Versioning without SDE!</li>
215+
<li><a href="http://vimeo.com/106228441">"Small Town GIS Leveraging Github"</a> - Aaron Racicot at FOSS4G2014</li>
218216
</ul>
219217
</li>
220-
<li>Versioning without SDE!</li>
221218
<li>geoJSON rendered as a map</li>
222219
</ul>
223220
</div>
@@ -231,7 +228,7 @@
231228
</div>
232229
<div>Let's get started with GitHub!</div>
233230
<div data-bodyclass="github-signup imageTextLight">Create GitHub account</div>
234-
<div>You're ready to get going</div>
231+
<div>You're ready to get going!</div>
235232
<div>Interact with Github by 3 means:
236233
<ul>
237234
<li>browser</li>
@@ -264,6 +261,11 @@
264261
<div data-bodyclass="fork"></div>
265262
<div>Clone repo</div>
266263
<div data-bodyclass="clone"></div>
264+
<div>Note the <em>branch</em></div>
265+
<div data-bodyclass="gh-pages-1"></div>
266+
<div>New repos start with a <em>Master</em> branch</div>
267+
<div>But we want to be able to use GitHub to show our maps and data within a webpage</div>
268+
<div>So we're working with the gh-pages</div>
267269
<div>Let's look at some data<br /><br /><a href="https://github.com/maptastik/os-webmap-workshop/blob/gh-pages/data/prepared/toledo_poi.geojson" target="_blank">Toledo POIs</a></div>
268270
<div>We can edit the POIs...</div>
269271
<div>...or make new geoJSON!</div>

0 commit comments

Comments
 (0)