-
Notifications
You must be signed in to change notification settings - Fork 3
/
tippercanoe
105 lines (50 loc) · 6.8 KB
/
tippercanoe
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Tippcanoe Instructions using WSL2
cd /mnt/d/GitHub/creds2/CarbonCalculator/data
tippecanoe --output-to-directory=carbon_super_gen --name=carbon --layer=carbon --attribution=MALCOLMMORGAN --maximum-zoom=8 --minimum-zoom=4 --coalesce-smallest-as-needed --simplification=10 --detect-shared-borders --maximum-tile-bytes=50000000 --buffer=5 --force carbon_super_general.geojson
tippecanoe --output-to-directory=carbon_gen --name=carbon --layer=carbon --attribution=MALCOLMMORGAN --maximum-zoom=11 --minimum-zoom=9 --coalesce-smallest-as-needed --simplification=10 --detect-shared-borders --maximum-tile-bytes=5000000 --buffer=5 --force carbon_general.geojson
tippecanoe --output-to-directory=carbon_full --name=carbon --layer=carbon --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=12 --coalesce-smallest-as-needed --simplification=10 --detect-shared-borders --maximum-tile-bytes=5000000 --buffer=5 --force carbon_full.geojson
tile-join --output-to-directory=LSOA_gen_and_sup_gen lsoa_super_general.mbtiles lsoa_general.mbtiles --attribution=MALCOLMMORGAN --name=lsoa
tile-join --output-to-directory=lsoa lsoa_super_general.mbtiles lsoa_general.mbtiles lsoa_full.mbtiles --attribution=MALCOLMMORGAN --name=LSOA
#### tippecanoe -zg --output-to-directory=mytiles2 --coalesce-smallest-as-needed --simplification=10 --detect-shared-borders LSOA_v1.geojson
consider
--maximum-tile-bytes=1000K
### LAs
tippecanoe --output-to-directory=la_tiles --name=la --layer=la --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=0 --drop-smallest-as-needed --simplification=10 --detect-shared-borders --force bounds/la_bounds.geojson
### Admin boundaries
tippecanoe --output-to-directory=parish_tiles --name=parish --layer=parish --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=0 --drop-smallest-as-needed --simplification=10 --detect-shared-borders --force bounds/parish.geojson
tippecanoe --output-to-directory=constituencies_tiles --name=constituencies --layer=constituencies --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=0 --drop-smallest-as-needed --simplification=10 --detect-shared-borders --force bounds/constituencies.geojson
tippecanoe --output-to-directory=wards_tiles --name=wards --layer=wards --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=0 --drop-smallest-as-needed --simplification=10 --detect-shared-borders --force bounds/wards.geojson
### Bus Stops
tippecanoe --output-to-directory=busstopstiles --name=busstops --layer=busstops --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=8 --drop-densest-as-needed --force busstops/openbusdata.geojson
### Bus Stops v2
tippecanoe --output-to-directory=transitstops --name=transitstops --layer=transitstops --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=4 --drop-densest-as-needed -rg4 --force transit_stop_frequency_v3.geojson
### LSOA cents
tippecanoe --output-to-directory=tiles/centroids --name=centroids --layer=centroids --attribution=MALCOLMMORGAN --maximum-zoom=13 --minimum-zoom=6 --drop-densest-as-needed --force data-prepared/lsoa_centroids.geojson
### OS Zoomstack
mb-util --image_format=pbf os_openzoomstack/OS_Open_Zoomstack.mbtiles OSzoomStack
tile-join --output-to-directory=OSzoomStack4 os_openzoomstack/OS_Open_Zoomstack.mbtiles
tippecanoe --output-to-directory=OSzoomStack6 --attribution=MALCOLMMORGAN --maximum-zoom=8 --minimum-zoom=4 --coalesce-smallest-as-needed --simplification=10 --detect-shared-borders --maximum-tile-bytes=50000000 --buffer=5 --force carbon_super_general.geojson
### OS Zoomstack - Custom build
cd /mnt/d/GitHub/creds2/CarbonCalculator/data/zoomstackgeojson
tippecanoe --output-to-directory=OSzoomStackCustom --attribution=OS --maximum-zoom=13 --drop-smallest-as-needed --simplification=10 --force airports.geojson boundaries.geojson district_buildings.geojson foreshore.geojson greenspace.geojson land.geojson names.geojson national_parks.geojson rail.geojson railway_stations.geojson roads_local.geojson roads_national.geojson roads_regional.geojson sites.geojson surfacewater.geojson urban_areas.geojson woodland.geojson
### OS Zoomstack low
cd /mnt/d/GitHub/creds2/CarbonCalculator/data/zoomstackgeojson/low
tippecanoe --output-to-directory=OSzoomStackSeaLow --attribution=OS --maximum-zoom=8 --drop-smallest-as-needed --simplification=10 --force boundaries.geojson foreshore.geojson greenspace.geojson sea.geojson names.geojson national_parks.geojson rail.geojson railway_stations.geojson roads.geojson surfacewater.geojson urban_areas.geojson woodland.geojson
cd /mnt/d/GitHub/creds2/CarbonCalculator/data/zoomstackgeojson/med
tippecanoe --output-to-directory=OSzoomStackSeamMed --attribution=OS --minimum-zoom=9 --maximum-zoom=11 --drop-smallest-as-needed --simplification=10 --force boundaries.geojson foreshore.geojson greenspace.geojson sea.geojson names.geojson national_parks.geojson rail.geojson railway_stations.geojson roads.geojson surfacewater.geojson urban_areas.geojson woodland.geojson
cd /mnt/d/GitHub/creds2/CarbonCalculator/data/zoomstackgeojson/high
tippecanoe --output-to-directory=OSzoomStackSeaHigh --attribution=OS --minimum-zoom=12 --maximum-zoom=14 --drop-smallest-as-needed --simplification=10 --force boundaries.geojson foreshore.geojson greenspace.geojson sea.geojson names.geojson national_parks.geojson rail.geojson railway_stations.geojson roads.geojson surfacewater.geojson urban_areas.geojson woodland.geojson
### PCT route network
tippecanoe --output-to-directory=pctroutenetwork/low --name=pct --layer=pct --attribution=PCT --maximum-zoom=8 --minimum-zoom=4 --drop-smallest-as-needed --simplification=10 --buffer=5 --force pct/rnet_low.geojson
tippecanoe --output-to-directory=pctroutenetwork/med --name=pct --layer=pct --attribution=PCT --maximum-zoom=11 --minimum-zoom=9 --drop-smallest-as-needed --simplification=10 --buffer=5 --force pct/rnet_med.geojson
tippecanoe --output-to-directory=pctroutenetwork/high --name=pct --layer=pct --attribution=PCT --maximum-zoom=13 --minimum-zoom=12 --drop-smallest-as-needed --simplification=10 --buffer=5 --force pct/rnet_high.geojson
### Travel to Work Lines
cd /mnt/d/GitHub/creds2/CarbonCalculator/data
tippecanoe --output-to-directory=Travel2Work --attribution=MALCOLMMORGAN --maximum-zoom=10 --minimum-zoom=8 --maximum-tile-bytes=5000000 --force ../data-prepared/travel2work_lines_suppressed_morethan10.geojson
COVID
cd /mnt/d/GitHub/ITSleeds/covid/data
tippecanoe -z13 --output-to-directory=tiles --coalesce-smallest-as-needed --simplification=5 --detect-shared-borders covid.geojson
ZOOM Level notes
Zoom 12 is about 1:150000 and difference between full and generalised lsoa boundaires is very subtle
Zoom 14 is 1:35000 all LSOA visible, difference between full and generalised boundaries is clear
Zoom 16 is 1:8000 is about the maximum needed to let a single LSOA full most of the screen, but uses too much data