From 6f8b5868a2db0ba694a356e0cd3365898e77bf9d Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 14 Jun 2011 18:09:34 -0400 Subject: [PATCH] Tagging a 0.0.2 to bring in lots of changes to the distributed version --- README.md | 4 +++- mbutil/util.py | 8 ++++---- setup.py | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 784175f..bd769e0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Git checkout (requires git) sudo python setup.py install # then you can run: mb-util - + Python installation (requires easy_install) easy_install mbutil @@ -47,3 +47,5 @@ MBUtil imports and exports metadata as JSON, in the root of the tile directory, ## Authors - Tom MacWright (tmcw) +- Dane Springmeyer (springmeyer) +- Mathieu Leplatre (leplatrem) diff --git a/mbutil/util.py b/mbutil/util.py index ea3f672..e3901e6 100755 --- a/mbutil/util.py +++ b/mbutil/util.py @@ -2,7 +2,7 @@ # MBUtil: a tool for MBTiles files # Supports importing, exporting, and more -# +# # (c) Development Seed 2011 # Licensed under BSD @@ -89,7 +89,7 @@ def compression_do(cur, con, chunk): else: unique = unique + 1 id = str(uuid.uuid4()) - + ids.append(id) files.append(r[3]) @@ -188,7 +188,7 @@ def mbtiles_to_disk(mbtiles_file, directory_path, **kwargs): layer_json = os.path.join(base_path,'layer.json') formatter_json = {"formatter":formatter} open(layer_json,'w').write('grid(' + json.dumps(formatter_json) + ')') - + tiles = con.execute('select zoom_level, tile_column, tile_row, tile_data from tiles;') t = tiles.fetchone() while t: @@ -203,7 +203,7 @@ def mbtiles_to_disk(mbtiles_file, directory_path, **kwargs): for c in msg: sys.stdout.write(chr(8)) logger.info('%s / %s tiles exported' % (done, count)) t = tiles.fetchone() - + # grids count = con.execute('select count(zoom_level) from grids;').fetchone()[0] done = 0 diff --git a/setup.py b/setup.py index d3aa3b8..f6d347e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='mbutil', - version='0.0.1', + version='0.0.2', author='Tom MacWright', author_email='macwright@gmail.com', packages=['mbutil'],