Skip to content

Commit

Permalink
bugfix: correctly parse bounds to array from mbtiles file
Browse files Browse the repository at this point in the history
  • Loading branch information
mnboos committed Jun 15, 2017
1 parent 25e3194 commit bd856c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tile_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,14 @@ def vector_layers(self):

def bounds_tile(self, zoom):
"""
* Returns the tile boundaries in the form [(x_min, y_min), (x_max, y_max)] where both values are tuples
* Returns the tile boundaries
:param zoom:
:param manual_bounds:
:return: """
bounds = self._get_metadata_value("bounds")
if bounds:
bounds = bounds.replace(" ", "").split(",")
bounds = map(lambda s: float(s), bounds)
scheme = self.scheme()
crs = self.crs()
return get_tile_bounds(zoom, bounds, crs, scheme)
Expand Down

0 comments on commit bd856c1

Please sign in to comment.