Commits

Oliver Tonnhofer  committed 0673d3b

fixed tms requests with flipped internal grid

  • Participants
  • Parent commits d0fed7b

Comments (0)

Files changed (1)

File mapproxy/service/tile.py

             raise RequestError('The requested tile is outside the bounding box'
                                ' of the tile map.', request=tile_request,
                                code='TileOutOfRange')
-        if tile_request.origin == 'nw':
+        if tile_request.origin == 'nw' and self.grid.origin not in ('ul', 'nw', None):
             tile_coord = self.grid.flip_tile_coord(tile_coord)
+        elif tile_request.origin == 'sw' and self.grid.origin not in ('ll', 'sw', None):
+            tile_coord = self.grid.flip_tile_coord(tile_coord)
+
         return tile_coord
     
     def empty_response(self):