Permalink
Browse files

update simplify factor, update build script: add clean-topo, add buil…

…d shorthand
  • Loading branch information...
1 parent e7c140f commit e17e52306eb9a34b9c714c84e2ac7e8bb79c9c45 @zbryikt zbryikt committed Mar 25, 2013
Showing with 21 additions and 5 deletions.
  1. +17 −1 Makefile
  2. +1 −1 twCounty2010.topo.json
  3. +1 −1 twTown1982.topo.json
  4. +1 −1 twVillage1982.topo.json
  5. +1 −1 twVote1982.topo.json
View
@@ -1,3 +1,10 @@
+#config simplify factor for each topojson
+twVillage1982.topo.json.simplify=0.00000008
+twTown1982.topo.json.simplify=0.00000005
+twCounty2010.topo.json.simplify=0.00000008
+twVote1982.topo.json.simplify=0.0000001
+
+
all: twVillage1982.topo.json twTown1982.topo.json twCounty2010.topo.json twVote1982.topo.json
clean:
@@ -44,5 +51,14 @@ twVote1982.geo.json: tmpdir/TWN_VILLAGE.shp
.SUFFIXES: .geojson .topojson
%.topo.json: %.geo.json
- ./node_modules/.bin/topojson -p -s 0.00000001 $< > $@
+ $(eval simplify=${${@}.simplify})
+ $(eval simplify=$(if ${simplify},${simplify},0.00000001))
+ ./node_modules/.bin/topojson -p -s ${simplify} $< > $@
+
+vote: twVote1982.topo.json
+village: twVillage1982.topo.json
+town: twTown1982.topo.json
+county: twCounty1982.topo.json
+clean-topo:
+ rm tw*.topo.json
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit e17e523

Please sign in to comment.