Opened 14 months ago

Last modified 7 months ago

#3668 new defect

gselect for space-time dataset stops working when creating a new mapset

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: wxGUI Version: 7.4.1
Keywords: temporal, gselect Cc:
CPU: Unspecified Platform: Unspecified

Description

Steps to reproduce:

  1. open t.info dialog and select dataset, works
  2. create new mapset (Settings -> GRASS working environment -> Create new mapset)
  3. open t.info and select dataset, fails with
GRASS_INFO_MESSAGE(16125,1): ERROR: Unable to execute sql statement. You have no permission to access mapset <test>, or mapset <test> has no temporal database. Accessible mapsets are: <modis>
GRASS_INFO_END(16125,1)
Temporal GIS error:
Unable to execute sql statement. You have no permission to access mapset <test>, or mapset <test> has no temporal database. Accessible mapsets are: <modis>
...
Traceback (most recent call last):
  File "/opt/src/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/gui_core/gselect.py", line 448, in OnPopup
    self.GetElementList(selected, exclude)
  File "/opt/src/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/gui_core/gselect.py", line 460, in GetElementList
    self._getElementList(self.type, self.mapsets, elements, exclude)
  File "/opt/src/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/gui_core/gselect.py", line 550, in _getElementList
    if mapset not in filesdict:
TypeError: argument of type 'NoneType' is not iterable

Change History (7)

comment:1 Changed 14 months ago by martinl

It seems that only st datasets in the path can be accessed. There is inconsistency compared to raster/vector data you can access even its mapset is not the path.

g.mapsets -p
Accessible mapsets:
test PERMANENT

t.info modis
WARNING: Temporal database connection defined as:
         /home/user/grassdata/oslo-region/test/tgis/sqlite.db
         But database file does not exist.
Creating temporal database:
/home/user/grassdata/oslo-region/test/tgis/sqlite.db
ERROR: Dataset <modis@test> not found in temporal database

g.mapsets map=modis 

g.mapsets -p
Accessible mapsets:
test PERMANENT modis

t.info modis@modis
 +-------------------- Space Time Raster Dataset -----------------------------+
 |                                                                            |
 +-------------------- Basic information -------------------------------------+
 | Id: ........................ modis@modis
...

Raster or vector data can be access even the mapset is not in the path.

g.mapsets -p
Accessible mapsets:
test PERMANENT

r.info rast_map@modis
 +----------------------------------------------------------------------------+
 | Map:      rast_map@modis                 Date: Fri Sep 28 09:37:26 2018    |
...

comment:2 Changed 14 months ago by martinl

Summary: gselect for space data dataset stop working when creating new mapsetgselect for space-time dataset stops working when creating a new mapset

comment:3 Changed 14 months ago by martinl

Version: 7.4.07.4.1

comment:4 Changed 13 months ago by neteler

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:5 Changed 11 months ago by martinl

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:6 Changed 11 months ago by neteler

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

comment:7 Changed 7 months ago by martinl

Milestone: 7.4.57.6.2
Note: See TracTickets for help on using tickets.