[GRASS-SVN] r36121 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 27 07:43:29 EST 2009


Author: martinl
Date: 2009-02-27 07:43:29 -0500 (Fri, 27 Feb 2009)
New Revision: 36121

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
Log:
wxGUI: remove unused code from location wizard
	fix datum trans dialog


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py	2009-02-27 03:53:51 UTC (rev 36120)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py	2009-02-27 12:43:29 UTC (rev 36121)
@@ -1988,10 +1988,6 @@
         Create a new location for selected projection
         """
         # creating location from PROJ.4 string passed to g.proj
-        cmdlist = ['g.proj', '-c',
-                   'proj4=%s' % proj4string,
-                   'location=%s' % self.startpage.location]
-
         ret = gcmd.RunCommand('g.proj',
                               flags = 'c',
                               proj4 = proj4string,
@@ -2024,8 +2020,7 @@
         epsgcode = self.epsgpage.epsgcode
         epsgdesc = self.epsgpage.epsgdesc
         location = self.startpage.location
-        cmdlist = []
-
+        
         # should not happend
         if epsgcode == '':
             wx.MessageBox(parent=self,
@@ -2034,11 +2029,8 @@
             return False
         
         # creating location
-        cmdlist = ['g.proj',
-                   'epsg=%s' % epsgcode,
-                   'datumtrans=-1']
-
         ret = gcmd.RunCommand('g.proj',
+                              read = True,
                               epsg = epsgcode,
                               datumtrans = '-1')
 
@@ -2096,8 +2088,6 @@
         georeffile = self.filepage.georeffile
         location = self.startpage.location
 
-        cmdlist = []
-
         # this should not happen
         if not georeffile or not os.path.isfile(georeffile):
             dlg = wx.MessageBox(parent=self.wizard,
@@ -2125,9 +2115,7 @@
         """
         wktfile = self.wktpage.wktfile
         location = self.startpage.location
-
-        cmdlist = []
-
+        
         # this should not happen
         if not wktfile or not os.path.isfile(wktfile):
             dlg = wx.MessageBox(parent=self.wizard,
@@ -2139,10 +2127,6 @@
             return False
 
         # creating location
-        cmdlist = ['g.proj', '-c',
-                   'wkt=%s' % wktfile,
-                   'location=%s' % location]
-
         ret = gcmd.RunCommand('g.proj',
                               flags = 'c',
                               wkt = wktfile,
@@ -2596,17 +2580,6 @@
 
     def OnSetButton(self, event=None):
         """Set default region"""
-        cmdlist = ['g.region', '-sgpa',
-                   'n=%f' % self.north,
-                   's=%f' % self.south,
-                   'e=%f' % self.east,
-                   'w=%f' % self.west,
-                   'nsres=%f' % self.nsres,
-                   'ewres=%f' % self.ewres,
-                   't=%f' % self.top,
-                   'b=%f' % self.bottom,
-                   'tbres=%f' % self.tbres]
-
         ret = gcmd.RunCommand('g.region',
                               flags = 'sgpa',
                               n = self.north,



More information about the grass-commit mailing list