Opened 6 years ago

Last modified 6 years 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 by martinl, 6 years ago

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 by martinl, 6 years ago

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 by martinl, 6 years ago

Version: 7.4.07.4.1

comment:4 by neteler, 6 years ago

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:5 by martinl, 6 years ago

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:6 by neteler, 6 years ago

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

comment:7 by martinl, 6 years ago

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