[GRASS-SVN] r72392 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 19 06:57:53 PDT 2018


Author: martinl
Date: 2018-03-19 06:57:52 -0700 (Mon, 19 Mar 2018)
New Revision: 72392

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

Modified: grass/trunk/gui/wxpython/core/utils.py
===================================================================
--- grass/trunk/gui/wxpython/core/utils.py	2018-03-19 12:29:45 UTC (rev 72391)
+++ grass/trunk/gui/wxpython/core/utils.py	2018-03-19 13:57:52 UTC (rev 72392)
@@ -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