[GRASS-SVN] r50040 - grass/trunk/scripts/r.in.srtm

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 3 03:51:16 EST 2012


Author: mmetz
Date: 2012-01-03 00:51:16 -0800 (Tue, 03 Jan 2012)
New Revision: 50040

Modified:
   grass/trunk/scripts/r.in.srtm/r.in.srtm.py
Log:
r.in.srtm: bugfix if input != basename input

Modified: grass/trunk/scripts/r.in.srtm/r.in.srtm.py
===================================================================
--- grass/trunk/scripts/r.in.srtm/r.in.srtm.py	2012-01-02 19:45:10 UTC (rev 50039)
+++ grass/trunk/scripts/r.in.srtm/r.in.srtm.py	2012-01-03 08:51:16 UTC (rev 50040)
@@ -169,9 +169,9 @@
     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)



More information about the grass-commit mailing list