[GRASS-SVN] r38203 - grass/trunk/scripts/m.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 4 11:23:06 EDT 2009


Author: martinl
Date: 2009-07-04 11:23:06 -0400 (Sat, 04 Jul 2009)
New Revision: 38203

Modified:
   grass/trunk/scripts/m.proj/m.proj.py
Log:
m.proj: if proj_in not given assume current location as input


Modified: grass/trunk/scripts/m.proj/m.proj.py
===================================================================
--- grass/trunk/scripts/m.proj/m.proj.py	2009-07-04 15:13:44 UTC (rev 38202)
+++ grass/trunk/scripts/m.proj/m.proj.py	2009-07-04 15:23:06 UTC (rev 38203)
@@ -178,7 +178,9 @@
 	in_proj = proj_in
 
     if not in_proj:
-	grass.fatal("Missing input projection parameters ")
+	grass.verbose("Assuming current location as input")
+        in_proj = grass.read_command('g.proj', flags = 'jf')
+    
     in_proj = in_proj.strip()
     grass.verbose("Input parameters: '%s'" % in_proj)
 



More information about the grass-commit mailing list