0

How can I, programmatically, draw a KML-file (routing information on a map) onto a map and then save the result to a .png-file?

What I try to accomplish: a program of mine (written in C++) produces a route. Now I would like this program to emit a .png-file instead with the route draw on it.

I've looked into the google maps api as well as others (e.g. cartagen) but google maps is java-script oriented and cartagen produces html5 output.

4

1 回答 1

0

可能您可以使用 Qt 框架来实现这一点。它有很好的 XML 支持,所以它应该很容易阅读 KML。它支持绘制简单的形状。它也支持PNG。

还有一个名为 libkml 的库 - 它可能可以帮助您处理 KML 文件。

我非常怀疑是否有任何“准备使用”的解决方案。

于 2012-12-10T15:02:15.297 回答