File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ def package_versions():
34
34
except ImportError :
35
35
pil_version = 'not installed'
36
36
pillow_version = 'not installed'
37
-
37
+
38
+ # Get PROJ.4 version info in a floating point number
39
+ proj_ver_num = pyproj .Proj (init = 'epsg:4326' ).proj_version
40
+ # reformats floating point number into string (4.90 becomes '4.9.0')
41
+ proj4_version = '.' .join (list (str (int (proj_ver_num * 100 ))))
42
+
38
43
BasemapPackageVersions = namedtuple (
39
44
'BasemapPackageVersions' ,
40
45
"""Python, basemap, matplotlib,
@@ -48,7 +53,7 @@ def package_versions():
48
53
numpy = numpy_version ,
49
54
pyproj = pyproj .__version__ ,
50
55
pyshp = pyshp_version ,
51
- PROJ4 = round ( pyproj . Proj ( init = 'epsg:4326' ). proj_version , 2 ) ,
56
+ PROJ4 = proj4_version ,
52
57
GEOS = _geoslib .__geos_version__ ,
53
58
# optional dependencies below
54
59
OWSLib = OWSLib_version ,
You can’t perform that action at this time.
0 commit comments