-
Notifications
You must be signed in to change notification settings - Fork 63
/
Makefile
31 lines (26 loc) · 830 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
clean: topojson
rm -rf tmp/
topojson: geojson
topojson \
--id-property ISO2 \
--properties NAME \
--simplify-proportion .5 \
--out TopoJSON/europe.topojson \
GeoJSON/europe.geojson
geojson: rmGeojson
ogr2ogr \
-f GeoJSON \
GeoJSON/europe.geojson \
tmp/shp/europe.shp
rmGeojson: mkdir
rm -f GeoJSON/europe.geojson
mkdir: shp
mkdir -p tmp
mkdir -p GeoJSON
mkdir -p TopoJSON
shp:
wget -P tmp/shp https://dl.dropboxusercontent.com/u/11360570/maps/Europe/europe.shp
wget -P tmp/shp https://dl.dropboxusercontent.com/u/11360570/maps/Europe/europe.dbf
wget -P tmp/shp https://dl.dropboxusercontent.com/u/11360570/maps/Europe/europe.prj
wget -P tmp/shp https://dl.dropboxusercontent.com/u/11360570/maps/Europe/europe.qpj
wget -P tmp/shp https://dl.dropboxusercontent.com/u/11360570/maps/Europe/europe.shx