Skip to content

Commit

Permalink
vips.py: Added more debug information regarding tile alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Dupuis committed Jan 8, 2014
1 parent f1c0462 commit d89f1e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gdal2mbtiles/vips.py
Expand Up @@ -789,6 +789,16 @@ def align_to_grid(self, resolution=None):
)
)

logger.debug(
'Tile aligned at ({longitude}, {latitude})'.format(
longitude=tile_extents.lower_left.x,
latitude=tile_extents.upper_right.y,
x=((tile_extents.lower_left.x / pixel_sizes.x) + \
(256 << (resolution))),
y=((256 << (resolution)) + \
tile_extents.upper_right.y / pixel_sizes.y)
)
)
logger.debug(
'Aligning within {width} × {height} at ({left}, {top})'.format(
width=width, height=height, left=left, top=top
Expand Down

0 comments on commit d89f1e9

Please sign in to comment.