Changeset 27523
- Timestamp:
- 01/19/23 04:19:13 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/coordsystems/epsg2proj.py
r27458 r27523 23 23 subproc = subprocess.Popen(subproc_args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) 24 24 outs, errs = subproc.communicate() 25 outs = outs.decode() 26 errs = errs.decode() 27 print(errs != '', errs == '', errs) 25 28 if errs != '': 26 29 raise RuntimeError("epsg2proj: call to gdalsrsinfo failed: {}".format(errs)) 27 30 28 version_major =int(outs)31 version_major = int(outs) 29 32 30 33 subproc_args = "gdalsrsinfo epsg:{} | command grep PROJ.4 | tr -d '\n' | sed 's/PROJ.4 : //'".format(epsg)
Note:
See TracChangeset
for help on using the changeset viewer.