[GRASS-SVN] r61445 - grass/branches/releasebranch_7_0/scripts/r.tileset
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 28 22:07:56 PDT 2014
Author: neteler
Date: 2014-07-28 22:07:56 -0700 (Mon, 28 Jul 2014)
New Revision: 61445
Modified:
grass/branches/releasebranch_7_0/scripts/r.tileset/r.tileset.py
Log:
r.tileset: assign fs outside while loop (trunk, r60628)
Modified: grass/branches/releasebranch_7_0/scripts/r.tileset/r.tileset.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.tileset/r.tileset.py 2014-07-29 05:02:12 UTC (rev 61444)
+++ grass/branches/releasebranch_7_0/scripts/r.tileset/r.tileset.py 2014-07-29 05:07:56 UTC (rev 61445)
@@ -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 = 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