Skip to content

JeffSuu/map_download

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

map_download

用 python 实现的一个 地图下载 的小工具

支持如下

  • Google 混合影像、天地图注记、Cesium 地形下载
  • 多线程下载
  • 下载数据写入 sqlite 数据库,支持快速拷贝读取等,其中数据库结构如下:
class Tiles(BaseModel):
  __tablename__ = 'tiles'
  zoom_level = Column(Integer)
  tile_column = Column(Integer)
  tile_row = Column(Integer)
  tile_data = Column(LargeBinary)
  __table_args__ = (
      PrimaryKeyConstraint('zoom_level', 'tile_column', 'tile_row'),
      Index('data_idx', 'zoom_level', 'tile_column', 'tile_row')
  )

使用

  • 修改 map_download/ui/main_dialog.py 第 53 行 'your access token in cesium' 为你自己在 cesium 官网申请的 access token
  • 确保 python3 环境
  • 安装三方库 pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
  • 安装本库 python setup.py develop
  • 运行 python run.py

觉得好用的话记得给个 Star 啊

有问题欢迎提 issue 啊

About

地图地形下载工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%