mapbox 创建、加载和编辑 mbtiles 的属性

mapbox create, load, and edit attributes of mbtiles

这不是一个真正的编程问题,而是更多的寻求建议。我正在尝试找出将大约 1500 万个多边形加载到网络地图上的最佳方法。该文件很大,大约 20GB 未压缩。

我找到的最佳解决方案是使用 .mbtiles 格式将 geojson 数据转换为矢量瓦片集。我使用带有 Tippecanoe 的 MapBox 对部分数据进行了此操作,但它们确实有 25GB 的上传限制,我假设所有 1500 万个具有属性的多边形都将大于该限制。

此外,当我将 .mbtiles 样本加载到 mapbox 时,它似乎有点慢。有没有比使用 MapBox 托管瓦片更好更快的解决方案?我正在寻找更快的图块加载时间。

我还想知道生成 .mbtiles 切片后是否可以编辑每个单独多边形的属性,如果可以,如何编辑?每次都必须返回并编辑我的 geojson 数据,转换为 .mbtiles 并上传,这似乎是一个巨大的痛苦。感谢您对此事的任何帮助。谢谢你。

你在这里问了很多不同的问题:

I would assume all 15 million polygons with attributes are going to be larger than [25GB, in mbtiles format]

我不这么认为。你应该试试看。

Is there a better and faster solution than using MapBox to host the tiles? I am looking for faster tile loading times.

如果 Mapbox 的托管是您的瓶颈,我会感到非常惊讶。或者就此使用 Mapbox-GL-JS 进行渲染。但其他解决方案包括 cloud.tilehosting.com,或使用 Tessera 等自托管。

I am also wondering once the .mbtiles tiles are generated is it possible to edit the attributes of each individual polygon and if so, how?

您可以在与 Tippecanoe 相同的包中使用 tile-joinhttps://github.com/mapbox/tippecanoe#tile-join