[GRASS-SVN] r59375 - grass/trunk/scripts/v.dissolve

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 26 08:53:41 PDT 2014


Author: martinl
Date: 2014-03-26 08:53:41 -0700 (Wed, 26 Mar 2014)
New Revision: 59375

Modified:
   grass/trunk/scripts/v.dissolve/v.dissolve.py
Log:
v.dissolve: add warning when column is not given (dissolving based on cats)

Modified: grass/trunk/scripts/v.dissolve/v.dissolve.py
===================================================================
--- grass/trunk/scripts/v.dissolve/v.dissolve.py	2014-03-26 15:49:20 UTC (rev 59374)
+++ grass/trunk/scripts/v.dissolve/v.dissolve.py	2014-03-26 15:53:41 UTC (rev 59375)
@@ -8,7 +8,7 @@
 #               Converted to Python by Glynn Clements
 # PURPOSE:      Dissolve common boundaries between areas with common cat
 #                 (frontend to v.extract -d)
-# COPYRIGHT:    (c) 2006 Hamish Bowman, and the GRASS Development Team
+# COPYRIGHT:    (c) 2006-2014 Hamish Bowman, and the GRASS Development Team
 #               This program is free software under the GNU General Public
 #               License (>=v2). Read the file COPYING that comes with GRASS
 #               for details.
@@ -58,6 +58,8 @@
 	grass.fatal(_("Vector map <%s> not found") % input)
     
     if not column:
+        grass.warning(_("No '%s' option specified. Dissolving based on category values from layer <%s>.") % \
+                          ("column", layer))
 	grass.run_command('v.extract', flags = 'd', input = input,
 			  output = output, type = 'area', layer = layer)
     else:



More information about the grass-commit mailing list