Quellcode durchsuchen

v.dissolve: add warning when column is not given (dissolving based on cats)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59375 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa vor 11 Jahren
Ursprung
Commit
be561b13b7
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      scripts/v.dissolve/v.dissolve.py

+ 3 - 1
scripts/v.dissolve/v.dissolve.py

@@ -8,7 +8,7 @@
 #               Converted to Python by Glynn Clements
 #               Converted to Python by Glynn Clements
 # PURPOSE:      Dissolve common boundaries between areas with common cat
 # PURPOSE:      Dissolve common boundaries between areas with common cat
 #                 (frontend to v.extract -d)
 #                 (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
 #               This program is free software under the GNU General Public
 #               License (>=v2). Read the file COPYING that comes with GRASS
 #               License (>=v2). Read the file COPYING that comes with GRASS
 #               for details.
 #               for details.
@@ -58,6 +58,8 @@ def main():
 	grass.fatal(_("Vector map <%s> not found") % input)
 	grass.fatal(_("Vector map <%s> not found") % input)
     
     
     if not column:
     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,
 	grass.run_command('v.extract', flags = 'd', input = input,
 			  output = output, type = 'area', layer = layer)
 			  output = output, type = 'area', layer = layer)
     else:
     else: