在世界地图上绘制GeoIP数据 [英] Plot GeoIP data on a World Map

查看:104
本文介绍了在世界地图上绘制GeoIP数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个能够获取一系列IP地址(或地理坐标)并将它们绘制在世界地图上的库(最好用Python编写)。



我已经找到这个,但它会将数据输出为.svg文件,并且无法处理大型数据集。



请注意我需要一些可以在本地下载和运行的东西,所以没有数据上传到第三方网络服务。



谢谢!

解决方案

也许 Matplotlib 中的nofollow noreferrer> Basemap 。

它可以做各种各样的投影(不要介意丑陋的默认颜色)。而且你可以很好地控制你的情节。您甚至可以使用 NASA蓝色大理石图像。当然,您可以使用plot命令在地图上绘制标记,线条等

我没有通过大数据集,但它是Matplotlib的一部分,我怀疑它会做得很好。



如果我没有记错,尽管它是图书馆的一部分,但默认情况下,它不会随Matplotlib提供。


I need a library (preferably written in Python) which is able to take a series of IP addresses (or geographic coordinates) and plots them on a World Map.

I already found this one, but it outputs data as a .svg file and it's simply unable to cope with large data sets.

Please note that I need something which can be downloaded and run locally, so no data uploading to 3rd party web services.

Thanks!

解决方案

Perhaps Basemap in Matplotlib for the plotting.

It can do all sorts of projections (don't mind the ugly default colours). And you have good control over what/how you plot. You can even use NASA Blue Marble imagery. And of course, you can plot markers, lines, etc on the map using the plot command.

I haven't put huge datasets through it, but being that it is a part of Matplotlib I suspect it will do well.

If I remember right, despite being part of the library, by default it doesn't ship with Matplotlib.

这篇关于在世界地图上绘制GeoIP数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆