Friday, February 28, 2014

OpenStreetMap TileStitcher

Another small Python geo utility library is ready. It is called OpenStreetMap TileStitcher.

The problem it solves is the following: You have an area on the Earth, and you want to have a continuous image of it. You can retrieve tiles (tiles are square images shown in various mapping webapps, like google maps, bing maps, or OSM), but you need to merge them and crop to your desired area.

OSM TileStitcher will do that for you.

Example:
slipy_map = mod_tilestitcher.SlippyMapTiles()
image = slipy_map.get_image((45.2775, 46.3785), (13.5261, 14.9271), 200, 200)
image.show()
More information in the README.

No comments:

Post a Comment