浏览代码

m.proj: if proj_in not given assume current location as input

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38203 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 年之前
父节点
当前提交
3e34b817aa
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      scripts/m.proj/m.proj.py

+ 3 - 1
scripts/m.proj/m.proj.py

@@ -178,7 +178,9 @@ def main():
 	in_proj = proj_in
 	in_proj = proj_in
 
 
     if not in_proj:
     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()
     in_proj = in_proj.strip()
     grass.verbose("Input parameters: '%s'" % in_proj)
     grass.verbose("Input parameters: '%s'" % in_proj)