@@ -93,7 +93,7 @@ def get_tile_wms(tile, imagery, folder, imagery_offset):
93
93
Converts the tile boundaries to the spatial reference system (SRS) specified
94
94
by the WMS query parameter.
95
95
"""
96
- query_dict = parse_qs (imagery )
96
+ query_dict = parse_qs (imagery . lower () )
97
97
image_format = query_dict ['format' ][0 ].split ('/' )[1 ]
98
98
wms_srs = query_dict ['srs' ][0 ]
99
99
@@ -102,9 +102,9 @@ def get_tile_wms(tile, imagery, folder, imagery_offset):
102
102
p2 = Proj ({'init' : wms_srs })
103
103
104
104
# project tile boundaries from lat/lng to WMS SRS
105
- tile_ul_proj = transform (p1 , p2 , bound .west , bound .north )
106
- tile_lr_proj = transform (p1 , p2 , bound .east , bound .south )
107
- bbox = tile_lr_proj + tile_ul_proj
105
+ tile_ll_proj = transform (p1 , p2 , bound .west , bound .south )
106
+ tile_ur_proj = transform (p1 , p2 , bound .east , bound .north )
107
+ bbox = tile_ll_proj + tile_ur_proj
108
108
109
109
wms_url = imagery .replace ('{bbox}' , ',' .join ([str (b ) for b in bbox ]))
110
110
r = requests .get (wms_url )
0 commit comments