自幹向量圖磚
謝晉凡 2019/08/18
捲起袖子前你需要知道的事...
About Me
話說從頭...
So...什麼是向量圖磚?
Who is the big boss?
https://osmcha.mapbox.com/
向量資料 - Vector
Not you ! Raster
Vector !
先來講講圖磚 (Tiles)
z = 1
z = 8
所謂向量圖磚(Vector TIles)
image from: https://blog.woosmap.com
什麼時候適合用向量圖磚?
當然,格式百百種 (下面的看過就好...)
MVT 搞什麼東東?
動手找範例
產製流程大概是這樣...
OpenStreetMap
(PBF)
Import
PostGIS
Encode
Vector Tiles�(MVT)
Diff
那麼...哪裡才找得到(原始地理資料)呢?
最常見的工具鏈
OpenStreetMap
(PBF)
Import
PostGIS
Encode
Vector Tiles�(MVT)
最常見的工具鏈
PostGIS
Encode
Vector Tiles�(MVT)
Client
MVT生態 - Mapbox
MVT生態-Tilezen (Nextzen)
And then… OpenMapTiles (MapTiler)
Make your tiles with OpenMapTiles
$ git clone https://github.com/openmaptiles/openmaptiles�$ ./quickstart taiwan |
全部docker化的工作流程
Not enough ? Serve it !
$ make start-tileserver |
Well… a little heavy
Easy to use, with make and docker-compose
$ make help |
坑點之一 - 圖磚更新
取用OSM Diff 來更新
坑點之二 - Wikidata
$ make serve-taiwan��
自幹之外,你也有其它「商業」選擇
Overwhelming?
t-rex! Dinosaur Rules !
So… What’s next?
MVT - the next generation
Other Resources
Thanks
Offline Usage - MBTiles
講人話 !!
講人話 !!
OpenStreetMap
(PBF)
Import
PostGIS
Encode
Vector Tiles�(MVT)
Where to start? Mapbox Studio
Upload, and style it!
Get outdoor map with contour very quickly
But... be aware of the limits !
But... be aware of the limits !
The most important - OSM Data
The roadmap to hell is paved with good intentions...
So what’s the problem?