diff --git a/python/grass/temporal/metadata.py b/python/grass/temporal/metadata.py index 84e7633e833..c5d1707f550 100644 --- a/python/grass/temporal/metadata.py +++ b/python/grass/temporal/metadata.py @@ -1412,8 +1412,8 @@ def get_semantic_labels(self): dbif = SQLDatabaseInterfaceConnection() dbif.connect() - dbif.execute(sql, mapset=self.mapset) - rows = dbif.fetchall(mapset=self.mapset) + dbif.execute(sql, mapset=self.tgis_mapset) + rows = dbif.fetchall(mapset=self.tgis_mapset) dbif.close() if rows: diff --git a/python/grass/temporal/space_time_datasets.py b/python/grass/temporal/space_time_datasets.py index df1da106e0c..b8e853e2441 100644 --- a/python/grass/temporal/space_time_datasets.py +++ b/python/grass/temporal/space_time_datasets.py @@ -1265,6 +1265,7 @@ def reset(self, ident): self.relative_time = STRDSRelativeTime(ident=ident) self.spatial_extent = STRDSSpatialExtent(ident=ident) self.metadata = STRDSMetadata(ident=ident) + self.metadata.tgis_mapset = self.get_mapset() ############################################################################### @@ -1391,6 +1392,7 @@ def reset(self, ident): self.relative_time = STR3DSRelativeTime(ident=ident) self.spatial_extent = STR3DSSpatialExtent(ident=ident) self.metadata = STR3DSMetadata(ident=ident) + self.metadata.tgis_mapset = self.get_mapset() ############################################################################### @@ -1500,6 +1502,7 @@ def reset(self, ident): self.relative_time = STVDSRelativeTime(ident=ident) self.spatial_extent = STVDSSpatialExtent(ident=ident) self.metadata = STVDSMetadata(ident=ident) + self.metadata.tgis_mapset = self.get_mapset() ###############################################################################