[GRASS-SVN] r61815 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 6 06:18:22 PDT 2014
Author: annakrat
Date: 2014-09-06 06:18:22 -0700 (Sat, 06 Sep 2014)
New Revision: 61815
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: add DB initialization before importing vector during creating new location
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2014-09-06 12:09:07 UTC (rev 61814)
+++ grass/trunk/gui/wxpython/gis_set.py 2014-09-06 13:18:22 UTC (rev 61815)
@@ -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