Skip to content

Commit

Permalink
update typedmatrix version to fix empty tile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pwoods25443 committed Aug 27, 2014
1 parent 516a87c commit c216b9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ docopt==0.6.2
nose==1.3.1
python-geohash==0.8.4
unittest2==0.5.1
git+git://github.com/SkyTruth/[email protected].1
git+git://github.com/SkyTruth/[email protected].2

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


setup(name='vectortile',
version='1.1',
version='1.1.1',
author='Paul Woods',
author_email='[email protected]',
description='',
Expand Down
11 changes: 10 additions & 1 deletion vectortile/tests/test_Tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ def test_tile(self):
self.assertEqual(header['length'], 1)
self.assertEqual(header['source'], h['source'])
self.assertEqual(data[0]['A'], d['A'])
self.assertEqual(repr(tile), repr(eval(repr(tile))))
self.assertEqual(repr(tile), repr(eval(repr(tile))))

def test_empty(self):
d = []
h = {'source': 'test_Tile'}
tile = Tile.fromdata(d, meta=h)
header, data = tile.unpack()
self.assertEqual(header['length'], 0)
self.assertEqual(len(data), 0)

0 comments on commit c216b9d

Please sign in to comment.