File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,15 @@ def package_versions():
73
73
PIL = pil_version ,
74
74
Pillow = pillow_version )
75
75
76
- def check_proj_inv_hammer (segfault_protection_off = False ):
76
+ def check_proj_inv_hammer (segfault_protection = True ):
77
77
"""
78
78
Check if the inverse of the hammer projection is supported by installed
79
79
version of PROJ4.
80
80
81
- segfault_protection_off=True - Turns off the protection from a segfault.
82
- BE CAREFUL setting this to True.
81
+ segfault_protection True (default) - test while protecting from segfault
82
+ False - testing that might cause Python to segfault.
83
+ BE CAREFUL setting this flag to False!
84
+ If it segfaults, this the inverse hammer is not supported.
83
85
84
86
returns True - inverse hammer is supported
85
87
False - inverse hammer is not supported
@@ -91,9 +93,8 @@ def check_proj_inv_hammer(segfault_protection_off=False):
91
93
if LooseVersion (proj4_version ()) > LooseVersion ('4.9.2' ):
92
94
return True
93
95
94
- # pyproj_version_tup = version_str_to_tuple(pyproj_version)
95
96
if LooseVersion (pyproj_version ) > LooseVersion ('1.9.5.1' ) \
96
- or segfault_protection_off is True :
97
+ or segfault_protection is False :
97
98
from pyproj import Proj
98
99
hammer = Proj (proj = 'hammer' )
99
100
You can’t perform that action at this time.
0 commit comments