Getting Down To Earth: Geospatial Analysis With Rails
Presentation by Daniel Azuma from RailsConf 2012. Covers example implementations of geospatial projects in Ruby on Rails. For more info, see http://daniel-azuma.com/railsconf2012
Our agenda Setting up a geospatial Rails app Project 1: Visualizing geo-activity Project 2: Timezone lookup for a location Further material available online
Project 1 summary We created a model to hold location data We loaded a bunch of data into it We queried data within a map rectangle We visualized the data using a heatmap
Project 2 summary We created timezone and polygon models We loaded data from a shapefile We wrote queries for polygons containing a point, and intersecting a buffer. We further optimized queries by subdividing polygons