This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MBTiles(GoogleTiles): | |
''' Retrieve tile data from MBTiles sqlite database instead of a url ''' | |
def __init__(self, tile_db): | |
self.tile_db = tile_db | |
GoogleTiles.__init__(self) | |
def get_image(self, tile): | |
import cStringIO | |
import sqlite3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir tile_cache | |
cd tile_cache | |
# Download Open Street Map Data | |
mkdir osm_data | |
cd osm_data | |
wget http://download.geofabrik.de/europe/great-britain/england/devon-latest.osm.pbf | |
wget http://download.geofabrik.de/europe/great-britain/england-latest.osm.pbf | |
cd .. |
NewerOlder