Skip to content

Commit

Permalink
Merge pull request #23 from hotosm/fix/third_party_url
Browse files Browse the repository at this point in the history
Hotfix : Support .png/.jpeg TMS
  • Loading branch information
kshitijrajsharma authored Aug 21, 2023
2 parents 19eb5d6 + 996837c commit bf3e59e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hot_fair_utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def get_bounding_box(filename: str) -> Tuple[float, float, float, float]:
Returns:
A tuple, (x_min, y_min, x_max, y_max), with coordinates in meters.
"""
filename = re.sub(r'\.(png|jpeg)$', '', filename)
_, *tile_info = re.split("-", filename)
x_tile, y_tile, zoom = map(int, tile_info)

Expand Down

0 comments on commit bf3e59e

Please sign in to comment.