فهرست منبع

Bug fixing

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50923 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 سال پیش
والد
کامیت
b7254f9eb7
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      lib/python/temporal/space_time_datasets_tools.py

+ 7 - 2
lib/python/temporal/space_time_datasets_tools.py

@@ -75,11 +75,14 @@ def register_maps_in_space_time_dataset(type, name, maps=None, file=None, start=
 
     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 @@ def sample_stds_by_stds_topology(intype, sampletype, input, sampler, header, sep
     """
     mapset =  core.gisenv()["MAPSET"]
 
+    print intype, sampletype
+
     if input.find("@") >= 0:
         id = input
     else: