@@ -27,9 +27,7 @@ def bounds_from_affine(
27
27
ys = [ul_y , ll_y , lr_y , ur_y ]
28
28
29
29
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 )
33
31
# TODO handle error
34
32
xs_proj , ys_proj = transformer .transform (xs , ys , errcheck = True )
35
33
else :
@@ -50,9 +48,7 @@ def reproject_bounds(bounds: Bbox, from_epsg: int, to_epsg: int) -> Bbox:
50
48
# read this in pairs, downward by column
51
49
xs = [minx , minx , maxx , maxx ]
52
50
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 )
56
52
xs_proj , ys_proj = transformer .transform (xs , ys , errcheck = True ) # TODO handle error
57
53
return min (xs_proj ), min (ys_proj ), max (xs_proj ), max (ys_proj )
58
54
@@ -288,9 +284,7 @@ def reproject_array(
288
284
# We do this by, for each point in the output grid, generating
289
285
# the coordinates in the _input_ CRS that correspond to that point.
290
286
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 )
294
288
295
289
xs , ys = np .meshgrid (x , y , copy = False )
296
290
src_xs , src_ys = reverse_transformer .transform (xs , ys , errcheck = True )
0 commit comments