浏览代码

wxGUI: add DB initialization before importing vector during creating new location (merge from trunk, https://trac.osgeo.org/grass/changeset/61815)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61816 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父节点
当前提交
ba14e6fd0b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      gui/wxpython/gis_set.py

+ 1 - 0
gui/wxpython/gis_set.py

@@ -511,6 +511,7 @@ class GRASSStartup(wx.Frame):
 
         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)