kmarif / mapCreator

A script that downloads OSM tiles and stitches them to a single jpeg map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mapCreator

A script that downloads OSM tiles and stitches them to a single jpeg map. Based on osm_download script. Main source of tiles is the 4umaps provider, but it can be changed to other tile servers in the ini file.

How it works

  • The script gets its configuration from the settings.ini file. Here each section corresponds to a map.
  • The tiles are stored on disk to limit load on the server. ( please avoid stressing the tile servers too much)
  • The tiles are stitched to a single .jpeg image and saved to the dest folder.

##Usage

  • configure map setting in the ini file:
    • source : tile server url, with placeholders for x,y and zoom
    • dest : destination directory on disk where the map will be saved
    • tilestore : local tilestore directory
    • zoom : zoom setting, more zoom=more tiles
    • bbox : bounding box of the map. Can be easily defined and copy-pasted from here
  • run with
 python mapCreator.py map_name

About

A script that downloads OSM tiles and stitches them to a single jpeg map

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%