[GRASS-SVN] r50923 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 22 19:22:45 EST 2012
Author: huhabla
Date: 2012-02-22 16:22:45 -0800 (Wed, 22 Feb 2012)
New Revision: 50923
Modified:
grass/trunk/lib/python/temporal/space_time_datasets_tools.py
Log:
Bug fixing
Modified: grass/trunk/lib/python/temporal/space_time_datasets_tools.py
===================================================================
--- grass/trunk/lib/python/temporal/space_time_datasets_tools.py 2012-02-23 00:21:33 UTC (rev 50922)
+++ grass/trunk/lib/python/temporal/space_time_datasets_tools.py 2012-02-23 00:22:45 UTC (rev 50923)
@@ -75,11 +75,14 @@
if type == "rast":
sp = dataset_factory("strds", id)
- if type == "rast3d":
+ elif type == "rast3d":
sp = dataset_factory("str3ds", id)
- if type == "vect":
+ elif type == "vect":
sp = dataset_factory("stvds", id)
+ else:
+ core.fatal(_("Unkown map type: %s")%(type))
+
connect = False
if dbif == None:
@@ -481,6 +484,8 @@
"""
mapset = core.gisenv()["MAPSET"]
+ print intype, sampletype
+
if input.find("@") >= 0:
id = input
else:
More information about the grass-commit
mailing list