八 zd tylesty w=10=sh 圆角

OSM 3d tileset JSON file

我正在使用 Cesium,我想制作一个 3d 城市表示。

我想从 OpenStreetMap 检索我当前所在位置的 .json。 我有我所在的位置和高度。

问题是我没有understand/can找不到我可以从哪个 url 来源检索建筑物 ID 及其在 openstreetmap

中定义的 tileset 位置的相对高度

我在 Internet 和 lib 上找到了很多这样做的例子,但我需要从源代码开始,但我不太清楚如何做。

基本上,例如:https://osmbuildings.org/ 如何从

获取数据

OSM 拥有设置此类服务所必需的数据,但由于目前还没有真正明确的标准(与 2D 栅格和可以说是矢量地图不同),不同的提供商使用不同的格式。要与 Cesium 一起使用,您可能需要 Cesium 3D Tiles.

Cesium 在他们的 Cesium Ion 平台上提供他们自己的基于 OSM 数据的构建层,称为 Cesium OSM Buildings(与 OSM Buildings 无关)。目前还不能完全支持OSM数据模型,但是Cesium集成显然做得很好

我不确定 OSM Buildings is currently using, but it does not seem to be the same as Cesium's 3D Tiles. Some older info on GitHub mentions using GeoJSON, but looking at the network traffic, it now seems to be using Mapbox Vector tiles, which is not a format specialized for 3D data, but rather a general-purpose solution for transmitting OSM data (and other data sources) as tiled vector maps. On osmbuildings.org/data,他们提到他们愿意为商业客户提供其他格式的数据,如果您愿意的话。

最后,一些人已经尝试使用开源软件为 Cesium 提供 OSM(参见 osm-cesium-3d-tiles and osm2cesium 存储库)。如果您愿意沿着这条路走下去,这可能是设置您自己的服务的起点,但目前它绝对不是一个完整和完善的解决方案。