-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (38 loc) · 1.64 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DB = db
RESOLUTION = 11
clean:
rm -r $(DB)
log:
gpspipe -w | DB=$(DB) RESOLUTION=$(RESOLUTION) ruby log.rb
pmtiles:
DB=$(DB) ruby to_geojsons.rb | tippecanoe -f -o docs/h3log.pmtiles -l h3log
h3j:
DB=$(DB) ruby to_h3j.rb > docs/h3log.h3j
dump:
DB=$(DB) ruby to_geojsons.rb
serve:
sudo caddy run
#busybox httpd -f -p 8000 -h docs
#ruby -run -e httpd docs -p 8000 # Seems no support for Range Request
docs/planet.pmtiles:
curl -o docs/planet.pmtiles -C - https://tile.openstreetmap.jp/static/planet.pmtiles
docs/gel.pmtiles:
curl -o docs/gel.pmtiles -C - https://data.source.coop/smartmaps/gel/gel.pmtiles
docs/terrain22.pmtiles:
curl -o docs/terrain22.pmtiles -C - https://data.source.coop/smartmaps/foil4gr1/terrain22.pmtiles
docs/kpop.pmtiles:
curl -o docs/kpop.pmtiles -C - https://data.source.coop/smartmaps/foil4gr1/kpop.pmtiles
sprite:
curl -o docs/sprite.json https://openmaptiles.github.io/positron-gl-style/sprite.json
curl -o docs/sprite@2x.json https://openmaptiles.github.io/positron-gl-style/sprite@2x.json
curl -o docs/sprite.png https://openmaptiles.github.io/positron-gl-style/sprite.png
curl -o docs/sprite@2x.png https://openmaptiles.github.io/positron-gl-style/sprite@2x.png
library:
curl -L -o docs/maplibre-gl.css https://unpkg.com/maplibre-gl/dist/maplibre-gl.css
curl -L -o docs/maplibre-gl.js https://unpkg.com/maplibre-gl/dist/maplibre-gl.js
curl -L -o docs/pmtiles.js https://unpkg.com/pmtiles/dist/pmtiles.js
curl -L -o docs/deck-gl.js https://unpkg.com/deck.gl@latest/dist.min.js
curl -L -o docs/3d-tiles.js https://unpkg.com/@loaders.gl/3d-tiles@4.3.1/dist/dist.min.js
ubx:
ubxtool -d BINARY
ubxtool -e NMEA