Skip to content

Instantly share code, notes, and snippets.

View timwaters's full-sized avatar
💭
Set your status

Tim Waters timwaters

💭
Set your status
View GitHub Profile
@timwaters
timwaters / gist:639346
Created October 21, 2010 20:59
batch import of control points into mapwarper
require 'fastercsv'
namespace :import do
desc "Imports GCP from a CSV file"
task :gcps_from_csv => :environment do
filename = "/path/to/lovely.csv"
puts "This imports a load of points from a csv file."
puts "WARNING: This may bugger up the system, especially if you have a lot of points!"
puts "Using File #{filename}"