Mapping your data
Because everyone loves maps
Steve Saylor
Bob Gradeck
David Walker
Located at the University of Pittsburgh
https://twitter.com/wprdc/
Publication of civic data
Old ways to get data from local governments
Police blotter in newspaper
Visit the Hall of Records
Freedom of Information Act/Right-to-Know requests
Know the right person and ask
Publication of civic data
Data has been traditionally closed by default and in many incompatible forms.
What if we could make government data open by default?
What makes data “open”?
OPEN DATA:
Machine-readable
Accessible
Standardized form
Has a permissive license
MASHable data supports the combination of different datasets.
The WPRDC is a regional data center
Data Publishers
Allegheny County
City of Pittsburgh
Baldwin Borough
University of Pittsburgh
Pittsburgh Parking Authority
Allegheny County Airport Authority
Port Authority of Allegheny County
WPRDC
Healthy Ride
BikePGH
Green Building Alliance
Urban Redevelopment Authority of Pittsburgh
Housing Authority of the City of Pittsburgh
Southwestern Pennsylvania Commission
Carnegie Library of Pittsburgh
Envision Downtown
Grow Pittsburgh
Pittsburgh Public Schools
A+ Schools
Pittsburgh Downtown Partnership
3 Rivers Wet Weather
DATA
DATA
Users
Citizens
Researchers
Students
Non-profit organizations
Companies
Other governmental organizations
Publishers
Journalists
Legal Infrastructure
Engagement Infrastructure
Building civic capacity:
Workshops + data counseling
Some of our 328 datasets
Explaining data to facilitate its use
Explaining data to facilitate its use
Data dictionaries for each dataset
Explaining data to facilitate its use
Data dictionaries for each dataset
Data stewards for each dataset
Explaining data to facilitate its use
Data dictionaries for each dataset
Data stewards for each dataset
Data guides
Tools (Geocoding + Reverse geocoding)
Geomancer
Uses Datamade’s usaddress package for address parsing and WPRDC open data for everything else.
How can we map all that open data?
Elements of a web map
Points - Represented as latitude and longitude coordinates
Posvar Hall is at 40.4415544,-79.9539847
Elements of a web map
Point - Represents a location as latitude and longitude coordinates
Posvar Hall is at 40.4415544,-79.9539847
LineString - A list of points, representing a path or street.
[[40.4367244,-79.9637211], [40.4417953,-79.9564899], [40.4415544,-79.9539847]]
Elements of a web map
Point - Represents a location as latitude and longitude coordinates
Posvar Hall is at 40.4415544,-79.9539847
LineString - A list of points, representing a path or street.
[[40.4367244,-79.9637211], [40.4417953,-79.9564899], [40.4415544,-79.9539847]]
Polygon - A closed loop of points, representing a boundary or area.
[[40.4426843,-79.9546177], [40.4421671,-79.9543727], [40.4423519,-79.9536928], [40.442854,-79.9538987], [40.4426843,-79.9546177]]
Elements of a web map
Base map -
Consists of map tiles, often from Google Maps or OpenStreetMap.
File formats for map data
CSV (Comma-Separated Values)
location,latitude,longitude
221B Baker St,51.520664584, -0.15499938
File formats
CSV
GeoJSON
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -0.15499938,51.520664584 ]
},
"properties": {
"location": "221B Baker St"
}}]
}
File formats
CSV
GeoJSON
KML (Keyhole
Markup Language)
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark>
<Point>
<coordinates>-0.15499938,51.520664584</coordinates>
</Point>
<ExtendedData>
<Data name="location">221B Baker St</Data>
</ExtendedData>
</Placemark>
</Document>
</kml>
Mapping software options
Carto ArcGIS Online | Mapbox Google My Maps | Leaflet |
ArcGIS | | QGIS |
online
desktop
$$$$$ “Freemium” Free
Mapping software options
Vendor lock-in
Carto ArcGIS Online | Mapbox Google My Maps | Leaflet |
ArcGIS | | QGIS |
online
desktop
$$$$$ “Freemium” Free
Mapping software options
Vendor lock-in
Open-source vs. closed-source software
Carto ArcGIS Online | Mapbox Google My Maps | Leaflet |
ArcGIS | | QGIS |
online
desktop
$$$$$ “Freemium” Free
Mapping software options
Vendor lock-in
Open-source vs. closed-source software
Long-term costs
Carto ArcGIS Online | Mapbox Google My Maps | Leaflet |
ArcGIS | | QGIS |
online
desktop
$$$$$ “Freemium” Free
Examples
Data visualization through fancier maps