Welcome to Advanced GIS, Lecture 4

This is a web page that can be viewed as slides.

→ to move forward

← to go back

Advanced GIS

Class 4

geocoding

buffer

convex hull

SQL

What does this do?

SELECT *
FROM education

And what does this do?

SELECT *
FROM education
WHERE students > 100
Jakob
Joy

SQL shows up everywhere online

SELECT *
FROM rooms
WHERE id=4789513

1. pulling data out of the database

2. changing the data in the database

you can also use SQL to quickly UPDATE or DELETE the data in your table

these will destroy data, so have a backup or test it with a table you don't need

this is one way to customize the way data is displayed in your pop-ups

first, create a new column on your table

then put the desired data in that column, based on some condition

UPDATE education
SET st_ratio = students / teachers
DELETE FROM education
WHERE ...

SQL shows up everywhere online

source
SELECT cartodb_id,
  ST_Transform(the_geom, 3573)
    AS the_geom_webmercator
FROM my_table

let's talk about project proposals

source
source

projects must:

projects might:

map kibera

source
source
source
Groundtruth Initiative

1. trace the roads using aerial imagery

Map Kibera Blog

2. use GPS to collect point data and correct roads

Map Kibera Blog

"In the intense density of Kibera, selecting which features are 'important' is a judgment call and a matter of interest."

Map Kibera Blog

3. decide on and focus on themes

education

health

security

water and sanitation

Map Kibera Walking Papers

(week one)

~1997 - today

  1. GPS
  2. the web changed
  3. more data became available
  4. FOSS became mainstream
Seeing Like a Slum: Towards Open, Deliberative Development
We Need to Stop Google’s Exploitation of Open Communities
Seeing Like a Slum: Towards Open, Deliberative Development
Map Kibera Blog
Voice of Kibera
source
source
source

HTML

defines the structure of a page, loads other bits

HTML

CSS

adds style to parts of a page

CSS

JavaScript

makes web pages dynamic (eg AJAX)

JavaScript

JavaScript

JavaScript

your browser loads the HTML, which tells it which CSS and JavaScript files to get (if any)

if you want something to be online, it has to be on a server somewhere

imgur.com

neocities.org

pages.github.com

adding images to pop-ups