Skip to content

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

License

Notifications You must be signed in to change notification settings

sjev/mapCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages