谷歌地图mapsgl矢量格式或其他地图瓦片矢量格式

发布于 2024-12-11 07:46:23 字数 357 浏览 0 评论 0原文

我想知道是否有人知道有关矢量数据的新 Google 地图 Mapsgl 格式的任何信息。我曾使用开放街道地图数据进行过一些工作,并使用 Mapnik 将其渲染为栅格图块。我注意到 Mapnik 也可以将 svg 文件渲染为矢量数据,但未压缩的 svg 文件比光栅图像更大。在看到来自 Google 的新的 mapgl 东西之后,我想知道他们或其他人对瓦片中的矢量数据做了什么。我想知道是否有任何其他数据格式可用于将开放街道地图数据存储为可以快速渲染的矢量数据。看到 Google 地图 mapgl 如何在网络应用程序中工作,我会对他们如何做到这一点的任何细节感兴趣。

我当前的重点是使用 OpenGL 通过桌面程序渲染数据,但如果这些格式可以在网络或移动应用程序上运行,那就更理想了。

I was wondering if anyone knew anything about the new Google maps mapsgl format for their vector data. I have worked some with open street maps data and rendering it to raster tiles with Mapnik. I noticed Mapnik can also render to svg file as vector data, but the uncompressed svg files are bigger then the raster images. After seeing the new mapgl thing from Google I was wondering what they did or anyone else for vector data that is chucked up in tiles. I would like to know of any other data formats that might be used for storing open street maps data in as vector data that can be rendered quickly. Seeing how Google maps mapgl is working in a web app I would be interested in any detail of how they did it.

My current focus would be rending the data with a desktop program using OpenGL, but it would be ideal if the formats could work on the web or mobile apps.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千紇 2024-12-18 07:46:23

不要将地理矢量数据格式与 SVG 混淆。 SVG 纯粹用于图形渲染,其语义对源地理数据一无所知。因此,SVG 绝对不是保存地理数据的好格式(而且它太冗长了)。

您需要的是某种二进制格式(更适合桌面应用程序)或非常简洁的 JSON(更适合 Web 客户端)来存储 OSM 数据。

我建议阅读此 QA:https: //gis.stackexchange.com/questions/15240/how-to-create-vector-polygons-at-the-same-amazing-speeds-giscloud-is-able-to-ren

还有一些制定二进制OSM协议的尝试,但我不知道这些项目处于什么状态:

Don't mix up geographic vector data formats with SVG. SVG is intended purely for graphic rendering and its semantics doesn't know anything about the source geographic data. So SVG definitively not a good format to keep your geo data (and it's too verbose anyway).

What you would need is some kind of binary format (better suited for desktop apps) or very terse JSON (better for Web clients) to store OSM data in.

I suggest reading this QA: https://gis.stackexchange.com/questions/15240/how-to-create-vector-polygons-at-the-same-amazing-speeds-giscloud-is-able-to-ren

There are also some attempts to formulate a binary OSM protocol, but I don't know what state these projects are in:

绿萝 2024-12-18 07:46:23

Mapbox 制作了“矢量图块”,这就是我一直在寻找的答案。

Mapbox made "Vector tiles" and that is the answer I was looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文