[GRASS-SVN] r61816 - grass/branches/releasebranch_7_0/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 6 06:21:42 PDT 2014


Author: annakrat
Date: 2014-09-06 06:21:42 -0700 (Sat, 06 Sep 2014)
New Revision: 61816

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gis_set.py
Log:
wxGUI: add DB initialization before importing vector during creating new location (merge from trunk, r61815)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gis_set.py	2014-09-06 13:18:22 UTC (rev 61815)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gis_set.py	2014-09-06 13:21:42 UTC (rev 61816)
@@ -511,6 +511,7 @@
 
         If successfull sets default region from imported map.
         """
+        RunCommand('db.connect', flags='c')
         mapName = os.path.splitext(os.path.basename(filePath))[0]
         vectors = RunCommand('v.in.ogr', dsn = filePath, flags = 'l',
                              read = True)



More information about the grass-commit mailing list