[GRASS-SVN] r55159 - grass/trunk/scripts/r.pack

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 22 00:25:48 PST 2013


Author: hamish
Date: 2013-02-22 00:25:48 -0800 (Fri, 22 Feb 2013)
New Revision: 55159

Modified:
   grass/trunk/scripts/r.pack/r.pack.html
   grass/trunk/scripts/r.pack/r.pack.py
Log:
also stash a copy of the PROJ_EPSG file, if it exists

Modified: grass/trunk/scripts/r.pack/r.pack.html
===================================================================
--- grass/trunk/scripts/r.pack/r.pack.html	2013-02-22 03:25:55 UTC (rev 55158)
+++ grass/trunk/scripts/r.pack/r.pack.html	2013-02-22 08:25:48 UTC (rev 55159)
@@ -5,6 +5,7 @@
 file can be afterwards unpacked
 by <em><a href="r.unpack.html">r.unpack</a></em>.
 
+
 <h2>NOTES</h2>
 
 Name of the pack file is determined by default from <b>input</b>
@@ -12,6 +13,7 @@
 
 Currently only 2D raster maps are supported.
 
+
 <h2>EXAMPLE</h2>
 
 Pack up raster map <i>aspect</i> into <i>aspect.pack</i> file.
@@ -33,10 +35,12 @@
   <a href="r.out.gdal.html">r.in.gdal</a>
 </em>
 
+
 <h2>AUTHORS</h2>
 
-Original Bash script written by Hamish Bowman, Otago University, New Zealand as GRASS AddOns
+Original Bash script written by Hamish Bowman, Otago University, New Zealand
 <br>
 Converted to Python and updated for GRASS 7 by Martin Landa, CTU in Prague, Czech Republic
 
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>

Modified: grass/trunk/scripts/r.pack/r.pack.py
===================================================================
--- grass/trunk/scripts/r.pack/r.pack.py	2013-02-22 03:25:55 UTC (rev 55158)
+++ grass/trunk/scripts/r.pack/r.pack.py	2013-02-22 08:25:48 UTC (rev 55159)
@@ -5,7 +5,7 @@
 # AUTHOR(S):	Hamish Bowman, Otago University, New Zealand
 #               Converted to Python by Martin Landa <landa.martin gmail.com>
 # PURPOSE:	Pack up a raster map, collect raster map elements => gzip
-# COPYRIGHT:	(C) 2004-2008, 2010 by the GRASS Development Team
+# COPYRIGHT:	(C) 2004-2013 by the GRASS Development Team
 #
 #		This program is free software under the GNU General
 #		Public License (>=v2). Read the file COPYING that
@@ -97,7 +97,7 @@
     # copy projection info
     # (would prefer to use g.proj*, but this way is 5.3 and 5.7 compat)
     gisenv = grass.gisenv()
-    for support in ['INFO', 'UNITS']:
+    for support in ['INFO', 'UNITS', 'EPSG']:
         path = os.path.join(gisenv['GISDBASE'], gisenv['LOCATION_NAME'],
                             'PERMANENT', 'PROJ_' + support)
         if os.path.exists(path):
@@ -119,7 +119,8 @@
     os.chdir(olddir)
     
     grass.verbose(_("Raster map saved to '%s'" % outfile))
-    
+
+
 if __name__ == "__main__":
     options, flags = grass.parser()
     atexit.register(cleanup)



More information about the grass-commit mailing list