Explorar el Código

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á hace 10 años
padre
commit
ba14e6fd0b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)