Permalink
Browse files

Tagging a 0.0.2 to bring in lots of changes to the distributed version

  • Loading branch information...
1 parent eaf58ed commit 6f8b5868a2db0ba694a356e0cd3365898e77bf9d @tmcw tmcw committed Jun 14, 2011
Showing with 8 additions and 6 deletions.
  1. +3 −1 README.md
  2. +4 −4 mbutil/util.py
  3. +1 −1 setup.py
View
@@ -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)
View
@@ -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
View
@@ -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'],

0 comments on commit 6f8b586

Please sign in to comment.