[GRASS-SVN] r63903 - grass/trunk/scripts/d.vect.thematic

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 1 09:39:05 PST 2015


Author: martinl
Date: 2015-01-01 09:39:04 -0800 (Thu, 01 Jan 2015)
New Revision: 63903

Modified:
   grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py
Log:
d.vect.thematic: check if monitor or direct rendering is enabled

Modified: grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py
===================================================================
--- grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py	2015-01-01 17:31:40 UTC (rev 63902)
+++ grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py	2015-01-01 17:39:04 UTC (rev 63903)
@@ -266,6 +266,11 @@
     size = float(size)
     maxsize = float(maxsize)
 
+    if 'MONITOR' not in grass.gisenv().keys() and \
+       'GRASS_RENDER_IMMEDIATE' not in os.environ:
+       grass.fatal(_("Neither MONITOR (managed by d.mon command) nor GRASS_RENDER_IMMEDIATE "
+                     "(used for direct rendering) defined)"))
+            
     mapset = grass.find_file(map, element='vector')['mapset']
     if not mapset:
         grass.fatal(_("Vector map <%s> not found") % map)



More information about the grass-commit mailing list