根据映射的数据库值对地图进行着色
问题: 在 http://www.bbc.co.uk/news/10150007
可以看到根据国家债务/赤字着色的欧洲国家地图。 现在,如果我自己能够做这样的事情,例如可视化区域销售数据,我已经发现它很有用好几次了。
有谁知道吗: 是否有任何(开源)工具可以根据映射到数据库中的值的颜色为世界/大陆/地区地图着色?
或者有什么工具可以构建自定义地图?
或者说如果没有这样的事情,自己怎么会做这样的事情呢?
从某处获取国家/地区的轮廓,
使国家/地区轮廓之外的所有内容都透明,
设置坐标和 z 索引以将多个图像相互堆叠,
然后用所选颜色替换基色在每个图像中,
然后将结果合并到单个图片中?
Question:
On
http://www.bbc.co.uk/news/10150007
one can see a map of european countries colored according to state debt/deficit.
Now I would have already found it useful several times if I was able to do such a thing myself, for example to visualize regional sales data.
Does anybody know:
Is there any (OpenSource) tool with which I can color a world/continental/reginal map according to colors mapped to values in a database ?
Or any tool that can construct a custom map ?
Or if there is no such thing, how would one do such a thing oneselfs ?
Get the outlines of countries from somewhere,
make everything outside the country outlines transparent,
set the coordinates and z-indeces to stack several images over one another,
and then replace the base color with the selected color in each image,
then merge the result to a single picture ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通常在 R 中执行此操作。这里是一堆如何在 R 中执行此操作的示例。
我还玩了一下 QQis,并且 IIRC 它可以接受输入来自 postgres PostGIS 文件。
典型的商业工具是 ArcView,但它的价格昂贵。
地图的标准文件格式是 ESRI Shapefile。这些实际上是具有以 DBase IV 格式存储的属性的文件集合。谷歌搜索“shapefile 查看器”将为您提供很多工具。
还有 mapserver,它允许您直接生成网络地图。
I normally do this in R. Here are a bunch of examples of how to do this in R.
I also played a bit with QQis, and IIRC it can take input from a postgres PostGIS file.
The canonical commercial tool is ArcView, but it ends up being pricey.
The standard file format for maps is ESRI Shapefiles. These are actually collections of files with the attributes stored in a DBase IV format. Googling for 'shapefile viewer' will get you lots of tools.
There is also mapserver, which allows you to generate maps directly to the web.