Skip to content

Commit

Permalink
Tagging a 0.0.2 to bring in lots of changes to the distributed version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom MacWright committed Jun 14, 2011
1 parent eaf58ed commit 6f8b586
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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)
8 changes: 4 additions & 4 deletions mbutil/util.py
Expand Up @@ -2,7 +2,7 @@

# MBUtil: a tool for MBTiles files
# Supports importing, exporting, and more
#
#
# (c) Development Seed 2011
# Licensed under BSD

Expand Down Expand Up @@ -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])

Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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'],
Expand Down

0 comments on commit 6f8b586

Please sign in to comment.