[GRASS-SVN] r57122 - grass/trunk/scripts/v.unpack
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 14 09:07:27 PDT 2013
Author: martinl
Date: 2013-07-14 09:07:27 -0700 (Sun, 14 Jul 2013)
New Revision: 57122
Modified:
grass/trunk/scripts/v.unpack/v.unpack.py
Log:
v.unpack: output table name cosmetics when only one table is linked to the map
Modified: grass/trunk/scripts/v.unpack/v.unpack.py
===================================================================
--- grass/trunk/scripts/v.unpack/v.unpack.py 2013-07-14 15:58:29 UTC (rev 57121)
+++ grass/trunk/scripts/v.unpack/v.unpack.py 2013-07-14 16:07:27 UTC (rev 57122)
@@ -139,7 +139,10 @@
layer = values[0].split('/')[0]
# we need to take care about the table name in case of several layer
if options["output"]:
- to_table = "%s_%s"%(map_name, layer)
+ if len(dbnlist) > 1:
+ to_table = "%s_%s" % (map_name, layer)
+ else:
+ to_table = map_name
else:
to_table = from_table
More information about the grass-commit
mailing list