Skip to content

Commit

Permalink
Recreate topojson with 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jstcki committed Jan 29, 2013
1 parent 243ee47 commit 5096578
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
LILJSON_PRECISION = 3
TOPOJSON_PRECISION = 10e-9 # 1 nsr, see http://en.wikipedia.org/wiki/Steradian

desc "Generate GeoJSON files"
task :geojson do
Expand All @@ -23,9 +24,9 @@ task :topojson do

src.each do |file_name|
system "topojson 'geojson/#{file_name}.json' -o 'topojson/#{file_name}.json' --properties"
system "topojson 'geojson/#{file_name}.json' -o 'topojson/#{file_name}-simplified.json' -s 1000 --properties"
system "topojson 'geojson/#{file_name}.json' -o 'topojson/#{file_name}-simplified.json' -s #{TOPOJSON_PRECISION} --properties"
end

system "topojson #{src.map { |f| "'geojson/#{f}.json'" }.join(" ")} -o 'topojson/switzerland.json' --properties"
system "topojson #{src.map { |f| "'geojson/#{f}.json'" }.join(" ")} -o 'topojson/switzerland-simplified.json' -s 1000 --properties"
system "topojson #{src.map { |f| "'geojson/#{f}.json'" }.join(" ")} -o 'topojson/switzerland-simplified.json' -s #{TOPOJSON_PRECISION} --properties"
end
Loading

0 comments on commit 5096578

Please sign in to comment.