See lib/tasks/build_geographic_areas.rake to build/rebuild sequence.  Working on shapes.