Geo Calculations

With Ruby

By Caleb Woods

Things to Consider

Libraries

GEOS

Proj.4

Ruby Gems

RGeo

RGeo GeoJSON

Other Libraries

PostGIS

Projections

Projections in Proj.4 can be downloaded from SpatialReference.org

Common Projections

Mercator

Mercator Projection

Albers

Albers Projection

UTM

UTM Projection

Albers vs UTM

UTM Zones

A Polygon can span a UTM zone border

For a ~300 acre field largest delta is 13 thousands of an acre

Common Formats

WKT Example

GeoJSON Example

GeoJSON Example

Questions?

Further Reading

Daniel Azuma's Blog (RGeo Maintainer)

RailsConf 2012 Geospatial Anlysis in Rails

Presentation Tools

Slides: Keydown

Maps: Gmaps.js

Get the Slides

http://calebwoods.github.com/geocalculation

#

/