Sha256: 81a2909870ee39597c82822ef7dcfb6c5954eda7237af460be20120727bb4a56

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

CensusRegion.class_eval do
  data_miner do
    import('the U.S. Census Geographic Terms and Definitions',
           :url => 'http://www.census.gov/popest/about/geo/state_geocodes_v2009.txt',
           :skip => 6,
           :headers => %w{ Region Division FIPS Name },
           :select => ::Proc.new { |row| row['Region'].to_i > 0 and row['Division'].to_i == 0 }) do
      key   'number', :field_name => 'Region'
      store 'name', :field_name => 'Name'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
earth-0.11.16 lib/earth/locality/census_region/data_miner.rb
earth-0.11.15 lib/earth/locality/census_region/data_miner.rb
earth-0.11.14 lib/earth/locality/census_region/data_miner.rb
earth-0.11.13 lib/earth/locality/census_region/data_miner.rb
earth-0.11.12 lib/earth/locality/census_region/data_miner.rb
earth-0.11.11 lib/earth/locality/census_region/data_miner.rb
earth-0.11.10 lib/earth/locality/census_region/data_miner.rb
earth-0.11.9 lib/earth/locality/census_region/data_miner.rb