Skip to content

Commit

Permalink
add ‘major-cities’ target
Browse files Browse the repository at this point in the history
  • Loading branch information
bradoyler committed Dec 16, 2016
1 parent aa0964f commit 08dd89a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions us-cities/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ shp/us/cities-over-150k.shp: shp/us/cities.shp
rm -f $@
ogr2ogr -f 'ESRI Shapefile' -where "POP_2010 > 150000 OR FEATURE2 Like '%Capital%'" $@ $<

shp/us/major-cities.shp: shp/us/cities.shp
mkdir -p $(dir $@)
rm -f $@
ogr2ogr -f 'ESRI Shapefile' -where "POP_2010 > 750000" $@ $<

shp/us/cities-over-100k.shp: shp/us/cities.shp
mkdir -p $(dir $@)
rm -f $@
Expand Down Expand Up @@ -199,6 +204,15 @@ topo/us-cities.json: geo/cities-all.json
-p NAME,STATE,LATITUDE,LONGITUDE,POP_2010 \
-- cities=$<

topo/us-major-cities.json: shp/us/major-cities.shp
../node_modules/.bin/topojson \
-o $@ \
--no-pre-quantization \
--post-quantization=1e6 \
--simplify=7e-7 \
-p NAME,STATE,LATITUDE,LONGITUDE,POP_2010 \
-- cities=$<

### misc target ###

svg/us-cities.svg: topo/us-cities-projected.json
Expand Down

0 comments on commit 08dd89a

Please sign in to comment.