在城市地图上绘制

2024-04-19 05:55:12 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的问题

1使用R语言和R-googlemap软件包,我可以输入:
require(RgoogleMaps)
lat <- xxx
lon <- xxx
center <- c(lat, lon)
zoom <- 11
MyMap <- GetMap(center=center, zoom=zoom)     

或者,使用ggmap得到一个图形(从this post剪裁而来),如下所示:


(来源:tietuku.com

但这张城市地图的格式是由一堆“.jpg”组成的。
因此,输出数据的质量会受到影响。在

2我的尝试
  1. Link google map or openstreetmap or some other free maptools to get the background figure with matplotlib.
  2. I prefer the background city map keep in the vector form

下图是我从纸上剪下来的一个例子,这就是我想要实现的。在


(来源:tietuku.com

更新

多亏了“太板”的建议,我将把我的问题总结成简单的句子。在

As the figure above, I want to use city map as figure background.


Tags: orthetocomcitymap来源xxx