Skip to content

Commit

Permalink
Control the number of indices on the edge of the tile
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgasser committed Aug 24, 2018
1 parent 3344411 commit 6eeb9cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_terrain_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ def testReaderWriter(self):
for i, v in enumerate(ter.northI):
self.assertEqual(v, ter2.northI[i], i)

# check vertice sitting on the edge
# we already know the number of indices on the edges
self.assertEqual(len(ter2.westI), 30)
self.assertEqual(len(ter2.eastI), 10)
self.assertEqual(len(ter2.southI), 14)
self.assertEqual(len(ter2.northI), 25)

self.assertEqual(ter2.getContentType(),
'application/vnd.quantized-mesh')

Expand Down

0 comments on commit 6eeb9cf

Please sign in to comment.