lib/jetel/modules/gadm/gadm.rb in jetel-0.0.15 vs lib/jetel/modules/gadm/gadm.rb in jetel-0.0.16
- old
+ new
@@ -1,7 +1,9 @@
# encoding: utf-8
+
+
require 'pmap'
require_relative '../../config/config'
require_relative '../../modules/module'
@@ -22,10 +24,12 @@
name = "#{full_name.split('_').first}"
filename = "#{name}_adm_shp.zip"
{
name: name,
url: "http://biogeo.ucdavis.edu/data/gadm2.8/shp/#{filename}",
- filename_downloaded: filename
+ filename_downloaded: filename,
+ flat: true,
+ filename_transformed: "#{name}_adm?.topo.json"
}
end
res
end