ソースを参照

r.in.srtm: bugfix if input != basename input

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50040 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 年 前
コミット
11960bce21
1 ファイル変更2 行追加2 行削除
  1. 2 2
      scripts/r.in.srtm/r.in.srtm.py

+ 2 - 2
scripts/r.in.srtm/r.in.srtm.py

@@ -169,9 +169,9 @@ def main():
     os.mkdir(tmpdir)
 
     if is_zip:
-	shutil.copyfile(zipfile, os.path.join(tmpdir, zipfile))
+	shutil.copyfile(zipfile, os.path.join(tmpdir, tile + ".hgt.zip"))
     else:
-	shutil.copyfile(hgtfile, os.path.join(tmpdir, hgtfile))
+	shutil.copyfile(hgtfile, os.path.join(tmpdir, tile + ".hgt"))
 
     #change to temporary directory
     os.chdir(tmpdir)