Coder Social home page Coder Social logo

map_download's Introduction

map_download

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

支持如下

  • Google 混合影像、天地图注记、Cesium 地形下载
  • 多线程下载
  • 下载数据写入 sqlite 数据库,支持快速拷贝读取等,其中数据库结构如下, 支持 mbtile 格式:
class Metadata(BaseModel):
    __tablename__ = 'metadata'
    name = Column(Text, primary_key=True)
    value = Column(Text)


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 啊

map_download's People

Contributors

cugxy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.