mapbox-developer-group / Mapbox-Tech-Q-A

在提问之前请自行查看文档哦,养成好习惯:https://docs.mapbox.com/
32 stars 1 forks source link

Tippecanoe 切片简化问题 #4

Open Jing-flyloveyin opened 5 years ago

Jing-flyloveyin commented 5 years ago

Mapbox 提供的切片工具 Tippecanoe 切的数据在比例尺很小的时候简化太严重了,有没有方案或者参数可以避免呢?

image

tippecanoe 中试了这个参数,切出来的矢量切片还是有简化。

提问者:Mapbox 开发者社区 @欧翔

barrycug commented 4 years ago

-B zoom or --base-zoom=zoom: Base zoom, the level at and above which all points are included in the tiles (default maxzoom). If you use -Bg, it will guess a zoom level that will keep at most 50,000 features in the densest tile. You can also specify a marker-width with -Bgwidth to allow fewer features in the densest tile to compensate for the larger marker, or -Bfnumber to allow at most number features in the densest tile --base-zoom=0

barrycug commented 4 years ago

核心问题是用这个参数容易导致瓦片大小大于500k,这样是不能上传到mapbox的云平台上面的

qxang commented 4 years ago

Tippecanoe 可以处理png 或tif 格式吗 ?或有没有其他类似高效切图工具?

shiyuan598 commented 4 years ago

处理栅格的切片可以看看https://github.com/mapbox/rio-mbtiles