Skip to content
forked from Kanahiro/tileget

Tile download utility - easily download xyz-tile data.

License

Notifications You must be signed in to change notification settings

marufoglu/tileget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tileget

Tile download utility - easily download xyz-tile data.

installation

pip install tileget

usage

usage: tileget [-h] [--extent EXTENT EXTENT EXTENT EXTENT]
                   [--geojson GEOJSON] [--minzoom MINZOOM] [--maxzoom MAXZOOM]
                   [--interval INTERVAL] [--overwrite] [--timeout TIMEOUT]
                   [--parallel PARALLEL]
                   tileurl output_dir

xyz-tile download tool

positional arguments:
  tileurl               xyz-tile url in {z}/{x}/{y} template
  output_dir            output dir

optional arguments:
  -h, --help            show this help message and exit
  --extent EXTENT EXTENT EXTENT EXTENT
                        min_lon min_lat max_lon max_lat, whitespace delimited
  --geojson GEOJSON     path to geojson which is Feature or FeatureCollection
                        with geometry in EPSG:3857
  --minzoom MINZOOM     default to 0
  --maxzoom MAXZOOM     default to 16
  --interval INTERVAL   time taken after each-request, set as miliseconds in
                        interger, default to 500
  --overwrite           overwrite existing files
  --timeout TIMEOUT     wait response until this value, set as seconds in
                        integer, default to 5
  --parallel PARALLEL   num of parallel requests

examples

get tiles in extent [141.23 40.56 142.45 43.78] and in zoomlevels 0-12

tileget https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/{z}/{x}/{y}.jpg ./output_dir --extent 141.23 40.56 142.45 43.78 --maxzoom 12

parallel download - 4 threads, zoomlevels 5-13

tileget https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/{z}/{x}/{y}.jpg ./output_dir --extent 141.23 40.56 142.45 43.78 --minzoom 5 --maxzoom 13 --parallel 4

About

Tile download utility - easily download xyz-tile data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%