All Projects → brandonxiang → pyMap

brandonxiang / pyMap

Licence: MIT license
Raster Map Download Helper

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyMap

Mapchete
Tile-based geodata processing using rasterio & Fiona
Stars: ✭ 129 (+55.42%)
Mutual labels:  tile, raster
Titiler
A dynamic Web Map tile server
Stars: ✭ 153 (+84.34%)
Mutual labels:  tile, raster
Rio Tiler
Rasterio plugin to create web map tiles from raster datasets.
Stars: ✭ 221 (+166.27%)
Mutual labels:  tile, raster
geoserver-rest
Python library for management for geospatial data in GeoServer. The geoserver-rest docs is available here,
Stars: ✭ 119 (+43.37%)
Mutual labels:  raster
tilematrix
helps handling tile pyramids
Stars: ✭ 15 (-81.93%)
Mutual labels:  tile
ilong
轻量级跨平台瓦片地图库,大部分算法来自QMapControl,就想练手的。。。因为需要轻量级跨平台的,所以只能先用SQLite数据库。。。
Stars: ✭ 24 (-71.08%)
Mutual labels:  tile
Protobuf-Dreamer
A tiled DeepDream project for creating any size of image, on both CPU and GPU
Stars: ✭ 39 (-53.01%)
Mutual labels:  tile
FreehandRasterGeoreferencer
QGIS plugin for the interactive georeferencing of rasters
Stars: ✭ 38 (-54.22%)
Mutual labels:  raster
awesome-spectral-indices
A ready-to-use curated list of Spectral Indices for Remote Sensing applications.
Stars: ✭ 357 (+330.12%)
Mutual labels:  raster
profiletool
Home to the QGis Profiletool plugin. Initial work on this fork was partially funded by the C.A. La Rioja
Stars: ✭ 23 (-72.29%)
Mutual labels:  raster
kiln
Kiln helps you maintain product tiles for VMware Tanzu Operations Manager.
Stars: ✭ 23 (-72.29%)
Mutual labels:  tile
Driftwood
Driftwood 2D Tiling Game Engine and Development Suite
Stars: ✭ 23 (-72.29%)
Mutual labels:  tile
Start maja
To process a Sentinel-2 time series with MAJA cloud detection and atmospheric correction processor
Stars: ✭ 47 (-43.37%)
Mutual labels:  raster
github-pinner
📌 Pin and embed github repositories or profiles on your own website easily
Stars: ✭ 62 (-25.3%)
Mutual labels:  tile
belg
Boltzmann entropy of a landscape gradient
Stars: ✭ 14 (-83.13%)
Mutual labels:  raster
Berry
Berry is a simple Tiled Map Loader for Corona SDK.
Stars: ✭ 16 (-80.72%)
Mutual labels:  tile
cyan
Cyan Color Converter
Stars: ✭ 68 (-18.07%)
Mutual labels:  raster
grid-engine
An exceptional plugin for grid-based features in the Phaser 3 framework.
Stars: ✭ 124 (+49.4%)
Mutual labels:  tile
lumo
A high performance WebGL tile rendering library
Stars: ✭ 58 (-30.12%)
Mutual labels:  tile
rasterx
Rasterx is an SVG 2.0 path compliant rasterizer that can use either scany, the golang vector or a derivative of the freetype anti-aliaser.
Stars: ✭ 107 (+28.92%)
Mutual labels:  raster

pyMap

Raster Map Download Helper

Similar Project

这是一个简单的实例,去实现地图下载工具。如今又很多瓦片的下载工具,但是都是收费的,感觉既然是盗版还要收费,非常不好。我决定做一个简单的地图下载器,将瓦片下载拼接成对应的图片。

经供参考,不要从事商业用途,后果自负。

依赖

  • python3.5
  • requests 负责下载功能
  • pillow 负责图片拼接
  • tqdm 负责进度条

安装

  1. 安装python3.5

  2. 安装对应的第三方库

pip install -r requirement.txt

用法

配置文件

配置文件格式

如果使用瓦片编码下载

[config]
下载方式 = 瓦片编码
左上横轴 = 803
左上纵轴 = 984
右下横轴 = 857
右下纵轴 = 1061
级别 = 8
项目名 = test
地图地址 = default

如果使用地理编码下载

[config]
下载方式 = 地理编码
左上横轴 = 113.889962
左上纵轴 = 22.456671
右下横轴 = 114.212686
右下纵轴 = 22.345576
级别 = 13
项目名 = sample
地图地址 = gaode

运用命令行

python pyMap.py 22.456671 113.889962 22.345576 114.212686 13 sample gaode
  • 参数1: 西北角纬度
  • 参数2: 西北角经度
  • 参数3: 东南角纬度
  • 参数4: 东南角经度
  • 参数5: 比例尺级别
  • 参数6: 输出路径(默认'output/mosaic.png')
  • 参数7: 地图类型(默认'gaode.image')

硬编码

请自修修改,下面是通过经纬度下载数据。

def test():
    process_latlng(22.4566710000, 113.8899620000, 22.3455760000, 114.2126860000, 13)

或者通过瓦片编号下载数据。

def test():
    process_tilenum(1566, 1788, 1976, 2149, 9, "output/overlay.png")

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].