ソースを参照

TGIS: fix semantic label (#2215)

 * fix detection of a shortcut or band identifier
 * do not modify the provided semantic label if it contains `_`
Markus Metz 3 年 前
コミット
843ffaee49
1 ファイル変更3 行追加3 行削除
  1. 3 3
      python/grass/temporal/abstract_space_time_dataset.py

+ 3 - 3
python/grass/temporal/abstract_space_time_dataset.py

@@ -1538,7 +1538,7 @@ class AbstractSpaceTimeDataset(AbstractDataset):
                 else:
                     return "{0:02d}".format(int(value))
             except ValueError:
-                return value
+                return None
 
             return None
 
@@ -1550,8 +1550,8 @@ class AbstractSpaceTimeDataset(AbstractDataset):
 
         # be case-insensitive
         if "_" in self.semantic_label:
-            # fully-qualified semantic label
-            where += "semantic_label IN ('{}'".format(self.semantic_label.upper())
+            # fully-qualified semantic label, do not modify
+            where += "semantic_label IN ('{}'".format(self.semantic_label)
 
             # be zero-padding less sensitive
             shortcut, identifier = self.semantic_label.split("_", -1)