23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/concensus/state_legislative.rb', line 23
def self.find(state, name = nil)
if Concensus::configuration.year == 2011
attribute_key = "NAMELSAD"
shp_file_path = get_and_unzip("SLDL/tl_2011_#{state_code_to_id(state)}_sldl.zip")
elsif Concensus::configuration.year == 2010
attribute_key = "NAMELSAD10"
shp_file_path = get_and_unzip("SLDL/2010/tl_2010_#{state_code_to_id(state)}_sldl10.zip")
end
return process_find("StateLegislative::Lower", shp_file_path, attribute_key, state, name)
end
|