File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ The raw GeoJSON source `data/hazard/global-hazard-points.geojson` is quite large
77should ideally be kept out of version control.
88
99## Generate the FlatGeobuf
10+
1011Convert the GeoJSON to FlatGeobuf for efficient serving:
1112
1213``` bash
@@ -16,12 +17,13 @@ ogr2ogr -f FlatGeobuf \
1617```
1718
1819## Generate Vector Tiles
20+
1921Create Mapbox Vector Tiles with [ tippecanoe] ( https://github.com/mapbox/tippecanoe ) :
2022
2123``` bash
2224tippecanoe \
2325 -r1 -pk -pf \
24- --output-to-directory=data/tiles/hazard_points / \
26+ --output-to-directory=data/tiles/global-hazard / \
2527 --force \
2628 --maximum-zoom=15 \
2729 --extend-zooms-if-still-dropping \
Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ resources:
6666 id_field : id
6767 options :
6868 limit : 2000 # Add specific limit for this collection
69- - type : tile
70- name : MVT-tippecanoe
71- data : /data/tiles/norway-hazard-points/
72- options :
73- zoom :
74- min : 0
75- max : 15
76- format :
77- name : pbf
78- mimetype : application/vnd.mapbox-vector-tile
69+ # - type: tile
70+ # name: MVT-tippecanoe
71+ # data: /data/tiles/norway-hazard-points/
72+ # options:
73+ # zoom:
74+ # min: 0
75+ # max: 15
76+ # format:
77+ # name: pbf
78+ # mimetype: application/vnd.mapbox-vector-tile
7979
8080 hazardglobal :
8181 type : collection
@@ -106,16 +106,16 @@ resources:
106106 id_field : id
107107 options :
108108 use_bbox : true # Enable bbox filtering
109- - type : tile
110- name : MVT-tippecanoe
111- data : /data/tiles/global-hazard/
112- options :
113- zoom :
114- min : 0
115- max : 15
116- format :
117- name : pbf
118- mimetype : application/vnd.mapbox-vector-tile
109+ # - type: tile
110+ # name: MVT-tippecanoe
111+ # data: /data/tiles/global-hazard/
112+ # options:
113+ # zoom:
114+ # min: 0
115+ # max: 15
116+ # format:
117+ # name: pbf
118+ # mimetype: application/vnd.mapbox-vector-tile
119119
120120 hyderabad :
121121 type : collection
@@ -149,13 +149,13 @@ resources:
149149 name : GeoJSON
150150 data : /data/hyderabad/greater_hyderabad_municipal_corporation_ward_Boundaries.geojson
151151 id_field : objectid
152- - type : tile
153- name : MVT-tippecanoe
154- data : /data/tiles/hyderabad/
155- options :
156- zoom :
157- min : 0
158- max : 16
159- format :
160- name : pbf
161- mimetype : application/vnd.mapbox-vector-tile
152+ # - type: tile
153+ # name: MVT-tippecanoe
154+ # data: /data/tiles/hyderabad/
155+ # options:
156+ # zoom:
157+ # min: 0
158+ # max: 16
159+ # format:
160+ # name: pbf
161+ # mimetype: application/vnd.mapbox-vector-tile
You can’t perform that action at this time.
0 commit comments