Przeglądaj źródła

back to orig option name; refers to direction of travel, not entity being passed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57033 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 12 lat temu
rodzic
commit
34a5d8fa27

+ 2 - 2
gui/wxpython/core/utils.py

@@ -577,8 +577,8 @@ def ReprojectCoordinates(coord, projOut, projIn = None, flags = ''):
     coors = RunCommand('m.proj',
                        flags = flags,
                        input = '-',
-                       proj_input = projIn,
-                       proj_output = projOut,
+                       proj_in = projIn,
+                       proj_out = projOut,
                        sep = ';',
                        stdin = '%f;%f' % (coord[0], coord[1]),
                        read = True)

+ 4 - 4
scripts/m.proj/m.proj.py

@@ -46,14 +46,14 @@
 #% guisection: Files & format
 #%end
 #%option
-#% key: proj_input
+#% key: proj_in
 #% type: string
 #% description: Input projection parameters (PROJ.4 style)
 #% required : no
 #% guisection: Projections
 #%end
 #%option
-#% key: proj_output
+#% key: proj_out
 #% type: string
 #% description: Output projection parameters (PROJ.4 style)
 #% required : no
@@ -113,8 +113,8 @@ def main():
     input = options['input']
     output = options['output']
     fs = options['separator']
-    proj_in = options['proj_input']
-    proj_out = options['proj_output']
+    proj_in = options['proj_in']
+    proj_out = options['proj_out']
     ll_in = flags['i']
     ll_out = flags['o']
     decimal = flags['d']

+ 2 - 2
scripts/r.in.wms/wms_base.py

@@ -301,8 +301,8 @@ class WMSBase:
                 temp_region_opened.close()            
 
             points = grass.read_command('m.proj', flags = 'd',
-                                        proj_output = self.proj_srs,
-                                        proj_input = self.proj_location,
+                                        proj_out = self.proj_srs,
+                                        proj_in = self.proj_location,
                                         input = temp_region,
                                         quiet = True) # TODO: stdin
             grass.try_remove(temp_region)