This is the presentation given at the Denver http://www.meetup.com/geo-co meetup. We explain a bit of how we used open data to create an interactive map.
http://silverbiology.com/projects/cartodb/casestudies/denvercrime/
2. Key Points
• Introduce CartoDB
• Explain about CartoCSS
• SQL via CartoDB API's
• Telling your story
3. CartoDB
• Geospatial mapping
• Data stored in the cloud
• PostGIS engine
• Supports CartoCSS
• SQL API
• Leaflet and Google Maps Libraries
• Graphical Editor for Point & Polygons
• Lots of Examples
• Free 5MB account
• FAST!!!
www.cartodb.com
4. Denver Crime Online Portal
Goal: To create an interactive map to view the
Denver crime data and to do it in less than a day.
Requirements:
• Use open data
• Use open source software
• Real Time Interaction
• Enjoyable to users
• Make it informative and Fast!!!
13. SQL for Pie Chart
SELECT
count(*) as sz,
count(*)::float/(SELECT count(*) FROM crime WHERE
neighborho = 'baker' )*100 as percent,
c.offense_ca
FROM denverhoods dh
JOIN crime c ON c.neighborho=dh.neighborho
WHERE c.neighborho = 'baker'
GROUP BY c.offense_ca
ORDER BY sz DESC