[GRASS-SVN] r58650 - grass/trunk/gui/wxpython/animation

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 8 18:03:39 PST 2014


Author: huhabla
Date: 2014-01-08 18:03:39 -0800 (Wed, 08 Jan 2014)
New Revision: 58650

Modified:
   grass/trunk/gui/wxpython/animation/g.gui.animation.py
Log:
Added missing tgis.init() call in case a stds is provided at the command line.


Modified: grass/trunk/gui/wxpython/animation/g.gui.animation.py
===================================================================
--- grass/trunk/gui/wxpython/animation/g.gui.animation.py	2014-01-08 20:51:35 UTC (rev 58649)
+++ grass/trunk/gui/wxpython/animation/g.gui.animation.py	2014-01-09 02:03:39 UTC (rev 58650)
@@ -56,6 +56,7 @@
 import wx
 
 import grass.script as grass
+import grass.temporal as tgis
 
 if __name__ == '__main__':
     sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "gui", "wxpython"))
@@ -84,9 +85,16 @@
         numInputs += 1
     if stvds:
         numInputs += 1
+        
 
     if numInputs > 1:
         grass.fatal(_("Options 'rast', 'vect', 'strds' and 'stvds' are mutually exclusive."))
+        
+    if numInputs > 0:
+        # We need to initialize the temporal framework in case
+        # a space time dataset was set on the command line so that
+        # the AnimLayer() class works correctly
+        tgis.init()
 
     layerList = LayerList()
     if rast:



More information about the grass-commit mailing list