Skip to content

Commit

Permalink
update simplify factor, update build script: add clean-topo, add buil…
Browse files Browse the repository at this point in the history
…d shorthand
  • Loading branch information
zbryikt committed Mar 25, 2013
1 parent e7c140f commit e17e523
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
18 changes: 17 additions & 1 deletion Makefile
@@ -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:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion twCounty2010.topo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion twTown1982.topo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion twVillage1982.topo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion twVote1982.topo.json

Large diffs are not rendered by default.

0 comments on commit e17e523

Please sign in to comment.