[GRASS-SVN] r60628 - grass/trunk/scripts/r.tileset

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 31 02:56:22 PDT 2014


Author: hcho
Date: 2014-05-31 02:56:22 -0700 (Sat, 31 May 2014)
New Revision: 60628

Modified:
   grass/trunk/scripts/r.tileset/r.tileset.py
Log:
r.tileset: assign fs outside while loop

Modified: grass/trunk/scripts/r.tileset/r.tileset.py
===================================================================
--- grass/trunk/scripts/r.tileset/r.tileset.py	2014-05-31 09:39:21 UTC (rev 60627)
+++ grass/trunk/scripts/r.tileset/r.tileset.py	2014-05-31 09:56:22 UTC (rev 60628)
@@ -264,7 +264,10 @@
                           region = options['region'])
     dest_bbox = grass.region()
     grass.debug('Getting destination region')
-    
+
+    # output field separator
+    fs = grass.separator(options['separator'])
+
     # project the destination region into the source:
     grass.verbose('Projecting destination region into source...')
     dest_bbox_points = bboxToPoints(dest_bbox)
@@ -372,7 +375,6 @@
                           (tile_bbox['w'], tile_bbox['s'], tile_bbox['e'], tile_bbox['n'],
                            tile_size_overlap[0], tile_size_overlap[1])
                 else:
-                    fs = grass.separator(options['separator'])
                     print "%s%s%s%s%s%s%s%s%s%s%s" % \
                           (tile_bbox['w'], fs, tile_bbox['s'], fs, tile_bbox['e'], fs, tile_bbox['n'], fs,
                            tile_size_overlap[0], fs, tile_size_overlap[1])



More information about the grass-commit mailing list