Skip to content

Commit

Permalink
fix mapset access
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm committed Sep 11, 2023
1 parent d0b7c4d commit 36eb604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/grass/temporal/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions python/grass/temporal/space_time_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


###############################################################################
Expand Down Expand Up @@ -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()


###############################################################################
Expand Down Expand Up @@ -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()


###############################################################################
Expand Down

0 comments on commit 36eb604

Please sign in to comment.