Permalink
Browse files

new geometry, 'make' does the right thing

  • Loading branch information...
1 parent 2bb8389 commit 73426a481956c021488cddd149a275b76ecd9631 Shawn Allen committed Mar 11, 2013
Showing with 6 additions and 5 deletions.
  1. +4 −3 data/Makefile
  2. +1 −1 data/us-states-segmentized.topojson
  3. +1 −1 data/us-states.topojson
View
@@ -1,5 +1,6 @@
OGR ?= ogr2ogr -F GeoJSON
TOPOJSON ?= ../../topojson/bin/topojson --id-property name
+SIMPLIFY ?= 24
all: \
us-states.topojson \
@@ -9,12 +10,12 @@ us-states-segmentized.geojson: us-states.geojson
$(OGR) -segmentize 0.5 $@ $<
us-states.topojson: us-states.geojson
- $(TOPOJSON) --simplify 24 -o $@ $<
- perl -pi -e "s/$</states/g" $@
+ $(TOPOJSON) --simplify $(SIMPLIFY) -o $@ $<
+ perl -pi -e "s/us-states/states/g" $@
us-states-segmentized.topojson: us-states-segmentized.geojson
$(TOPOJSON) -o $@ $<
- perl -pi -e "s/$</states/g" $@
+ perl -pi -e "s/us-states-segmentized/states/g" $@
clean:
rm -f us-states-segmentized.geojson
Oops, something went wrong.

0 comments on commit 73426a4

Please sign in to comment.