Просмотр исходного кода

m.proj uses current location as input if proj_input is not given

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38205 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 лет назад
Родитель
Сommit
df42629139
1 измененных файлов с 2 добавлено и 7 удалено
  1. 2 7
      gui/wxpython/gui_modules/utils.py

+ 2 - 7
gui/wxpython/gui_modules/utils.py

@@ -489,16 +489,11 @@ def ReprojectCoordinates(coord, projOut, projIn = None, flags = ''):
 
     @return reprojected coordinates (returned as tuple)
     """
-    if not projIn:
-        projIn = gcmd.RunCommand('g.proj',
-                                 flags = 'jf',
-                                 read = True).rstrip('\n')
-    
     coors = gcmd.RunCommand('m.proj',
                             flags = flags,
                             input = '-',
-                            proj_in = projIn,
-                            proj_out = projOut,
+                            proj_input = projIn,
+                            proj_output = projOut,
                             fs = ';',
                             stdin = '%f;%f' % (coord[0], coord[1]),
                             read = True)