This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html#method-c-load | |
# http://ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html#method-c-dump | |
# https://github.com/JEG2/faster_csv/blob/master/test/tc_serialization.rb | |
require 'csv' | |
class Person | |
attr_accessor :id, :name, :email | |
def self.csv_load(meta, headers, row) | |
person = Person.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To get this gist running use Ruby 1.9.2 or greater and: | |
# brew install proj | |
# gem install proj4rb | |
# | |
# http://spatialreference.org/ref/epsg/25831/ | |
require 'proj4' | |
utm_point = Proj4::Point.new(43718.773, 72605.572) | |
utm30 = Proj4::Projection.new(proj: "utm", zone: "30", units: "m", ellps: 'intl') |
NewerOlder