[GRASS-SVN] r72494 - grass/branches/releasebranch_7_4/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 22 08:18:10 PDT 2018


Author: martinl
Date: 2018-03-22 08:18:10 -0700 (Thu, 22 Mar 2018)
New Revision: 72494

Modified:
   grass/branches/releasebranch_7_4/gui/wxpython/core/utils.py
Log:
Read EPSG codes with PROJ v.5 fails, fix #3514

Modified: grass/branches/releasebranch_7_4/gui/wxpython/core/utils.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/core/utils.py	2018-03-22 14:50:37 UTC (rev 72493)
+++ grass/branches/releasebranch_7_4/gui/wxpython/core/utils.py	2018-03-22 15:18:10 UTC (rev 72494)
@@ -537,7 +537,7 @@
         code = None
         for line in f.readlines():
             line = line.strip()
-            if len(line) < 1:
+            if len(line) < 1 or line.startswith('<metadata>'):
                 continue
 
             if line[0] == '#':



More information about the grass-commit mailing list