@@ -27,9 +27,7 @@ def bounds_from_affine(
2727 ys = [ul_y , ll_y , lr_y , ur_y ]
2828
2929 if from_epsg != to_epsg :
30- transformer = cached_transformer (
31- from_epsg , to_epsg , skip_equivalent = True , always_xy = True
32- )
30+ transformer = cached_transformer (from_epsg , to_epsg , always_xy = True )
3331 # TODO handle error
3432 xs_proj , ys_proj = transformer .transform (xs , ys , errcheck = True )
3533 else :
@@ -50,9 +48,7 @@ def reproject_bounds(bounds: Bbox, from_epsg: int, to_epsg: int) -> Bbox:
5048 # read this in pairs, downward by column
5149 xs = [minx , minx , maxx , maxx ]
5250 ys = [maxy , miny , miny , maxy ]
53- transformer = cached_transformer (
54- from_epsg , to_epsg , skip_equivalent = True , always_xy = True
55- )
51+ transformer = cached_transformer (from_epsg , to_epsg , always_xy = True )
5652 xs_proj , ys_proj = transformer .transform (xs , ys , errcheck = True ) # TODO handle error
5753 return min (xs_proj ), min (ys_proj ), max (xs_proj ), max (ys_proj )
5854
@@ -288,9 +284,7 @@ def reproject_array(
288284 # We do this by, for each point in the output grid, generating
289285 # the coordinates in the _input_ CRS that correspond to that point.
290286
291- reverse_transformer = cached_transformer (
292- spec .epsg , from_epsg , skip_equivalent = True , always_xy = True
293- )
287+ reverse_transformer = cached_transformer (spec .epsg , from_epsg , always_xy = True )
294288
295289 xs , ys = np .meshgrid (x , y , copy = False )
296290 src_xs , src_ys = reverse_transformer .transform (xs , ys , errcheck = True )
0 commit comments