Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
peitilisc committed Dec 13, 2021
1 parent 977d70f commit 297ac44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_mvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def _check_metatile(self, metatile_size):
for (posargs, kwargs), coord in zip(encode.call_args_list,
tile_coords):
self.assertIn('quantize_bounds', kwargs)
# We hardcoded the extent to be 4096 in
# https://github.com/tilezen/tilequeue/pull/404
# thus the extent calculation is thus commented out
# quantize_bounds = kwargs['quantize_bounds']
# extent = int(round((quantize_bounds[2] - quantize_bounds[0]) /
# resolution))
Expand Down
4 changes: 4 additions & 0 deletions tilequeue/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,10 @@ def format_coord(

formatted_tiles = []
for cut_coord in cut_coords:
# we hardcoded the extent to be 4096 in
# https://github.com/tilezen/tilequeue/pull/404
# before, the scale is calculated by
# _calculate_scale(scale, coord, nominal_zoom)
if cut_coord == coord:
# we hardcoded the extent to be 4096 in
# https://github.com/tilezen/tilequeue/pull/404
Expand Down

0 comments on commit 297ac44

Please sign in to comment.