@@ -20,7 +20,7 @@ def test_tranform_wgs84_to_custom():
20
20
21
21
22
22
def test_transform_wgs84_to_alaska ():
23
- with pytest .warns (FutureWarning ):
23
+ with pytest .warns (DeprecationWarning ):
24
24
lat_lon_proj = pyproj .Proj (init = "epsg:4326" , preserve_units = False )
25
25
alaska_aea_proj = pyproj .Proj (init = "epsg:2964" , preserve_units = False )
26
26
test = (- 179.72638 , 49.752533 )
@@ -30,7 +30,7 @@ def test_transform_wgs84_to_alaska():
30
30
31
31
def test_illegal_transformation ():
32
32
# issue 202
33
- with pytest .warns (FutureWarning ):
33
+ with pytest .warns (DeprecationWarning ):
34
34
p1 = pyproj .Proj (init = "epsg:4326" )
35
35
p2 = pyproj .Proj (init = "epsg:3857" )
36
36
xx , yy = pyproj .transform (
@@ -46,7 +46,7 @@ def test_illegal_transformation():
46
46
47
47
def test_lambert_conformal_transform ():
48
48
# issue 207
49
- with pytest .warns (FutureWarning ):
49
+ with pytest .warns (DeprecationWarning ):
50
50
Midelt = pyproj .Proj (init = "epsg:26191" )
51
51
WGS84 = pyproj .Proj (init = "epsg:4326" )
52
52
@@ -80,7 +80,7 @@ def test_equivalent_crs__different():
80
80
81
81
82
82
def test_equivalent_proj ():
83
- with pytest .warns (FutureWarning ):
83
+ with pytest .warns (DeprecationWarning ):
84
84
transformer = Transformer .from_proj (
85
85
"+init=epsg:4326" , pyproj .Proj (4326 ).crs .to_proj4 (), skip_equivalent = True
86
86
)
@@ -231,35 +231,35 @@ def test_itransform_time_3rd_invalid():
231
231
232
232
233
233
def test_transform_no_error ():
234
- with pytest .warns (FutureWarning ):
234
+ with pytest .warns (DeprecationWarning ):
235
235
pj = Proj (init = "epsg:4555" )
236
236
pjx , pjy = pj (116.366 , 39.867 )
237
237
transform (pj , Proj (4326 ), pjx , pjy , radians = True , errcheck = True )
238
238
239
239
240
240
def test_itransform_no_error ():
241
- with pytest .warns (FutureWarning ):
241
+ with pytest .warns (DeprecationWarning ):
242
242
pj = Proj (init = "epsg:4555" )
243
243
pjx , pjy = pj (116.366 , 39.867 )
244
244
list (itransform (pj , Proj (4326 ), [(pjx , pjy )], radians = True , errcheck = True ))
245
245
246
246
247
247
def test_transform_no_exception ():
248
248
# issue 249
249
- with pytest .warns (FutureWarning ):
249
+ with pytest .warns (DeprecationWarning ):
250
250
transformer = Transformer .from_proj ("+init=epsg:4326" , "+init=epsg:27700" )
251
251
transformer .transform (1.716073972 , 52.658007833 , errcheck = True )
252
252
transformer .itransform ([(1.716073972 , 52.658007833 )], errcheck = True )
253
253
254
254
255
255
def test_transform__out_of_bounds ():
256
- with pytest .warns (FutureWarning ):
256
+ with pytest .warns (DeprecationWarning ):
257
257
transformer = Transformer .from_proj ("+init=epsg:4326" , "+init=epsg:27700" )
258
258
assert np .all (np .isinf (transformer .transform (100000 , 100000 , errcheck = True )))
259
259
260
260
261
261
def test_transform_radians ():
262
- with pytest .warns (FutureWarning ):
262
+ with pytest .warns (DeprecationWarning ):
263
263
WGS84 = pyproj .Proj ("+init=EPSG:4326" )
264
264
ECEF = pyproj .Proj (proj = "geocent" , ellps = "WGS84" , datum = "WGS84" )
265
265
assert_almost_equal (
@@ -283,7 +283,7 @@ def test_transform_radians():
283
283
284
284
285
285
def test_itransform_radians ():
286
- with pytest .warns (FutureWarning ):
286
+ with pytest .warns (DeprecationWarning ):
287
287
WGS84 = pyproj .Proj ("+init=EPSG:4326" )
288
288
ECEF = pyproj .Proj (proj = "geocent" , ellps = "WGS84" , datum = "WGS84" )
289
289
assert_almost_equal (
0 commit comments