Browse Source

fix create_location() for wkt

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47022 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 năm trước cách đây
mục cha
commit
4a79c47448
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      gui/wxpython/gui_modules/location_wizard.py
  2. 1 1
      lib/python/core.py

+ 1 - 1
gui/wxpython/gui_modules/location_wizard.py

@@ -2034,7 +2034,7 @@ class LocationWizard(wx.Object):
                 
                 grass.create_location(dbase = self.startpage.grassdatabase,
                                       location = self.startpage.location,
-                                      filename = self.wktpage.wktfile,
+                                      wkt = self.wktpage.wktfile,
                                       desc = self.startpage.locTitle)
         
         except grass.ScriptError, e:

+ 1 - 1
lib/python/core.py

@@ -955,7 +955,7 @@ def create_location(dbase, location,
     elif wkt:
         ps = pipe_command('g.proj',
                           quiet = True,
-                          wkt = wktfile,
+                          wkt = wkt,
                           location = location,
                           stderr = PIPE)
     else: