Opened 18 months ago

Last modified 18 months ago

#3577 new enhancement

Add rename and delete of Location and Mapset in Datacatalog

Reported by: wenzeslaus Owned by: grass-dev@…
Priority: normal Milestone: 8.0.0
Component: wxGUI Version: unspecified
Keywords: datacatalog, location, mapset, rename, delete, move, remove, g.mapset Cc:
CPU: Unspecified Platform: Unspecified

Description

Add Rename and Delete actions to the context menu of Location and Mapset tree items in the Datacatalog (Data tab).

Current items (7.4) in the context menu of Mapset:

  • Paste
  • Switch mapset

Location does not have any associated actions.

Change History (2)

comment:1 Changed 18 months ago by Nikos Alexandris

For Mapsets, does this mean that there will be a g.remove mapset option? Or a g.mapset -r? 'r' as in remove. And, correspondingly, a way to rename?

comment:2 Changed 18 months ago by wenzeslaus

Keywords: g.mapset added

Probably not g.remove mapset because mapset is (at least currently) not considered to be an element (element of a mapset to be exact) like raster or vector maps.

g.mapset -r is difficult to decide. It looks like it makes sense, but on the other hand, in GRASS GIS, you are not allowed to edit data in other mapsets. Deleting other mapset seems to qualify as editing data in other mapset and deleting current mapset does not make much sense.

Nevertheless, now (in the startup) you can do it (you are not really running GRASS yet). It is implemented purely in GUI/Python (AFAIR). It is important for the users who are not using command line and can't use rm /the/full/path/to/mapset or are not confident about the database directory structure to simply navigate there in a file browser and delete it.

Adding rename and delete (of location and mapset) to Datacatalog is an extension of functionality in Startup window and in the Data tab (which is here to be nice towards users without deeper GRASS GIS knowledge or command line knowledge). Another reason for it that the Datacatolog (in a modified) is a candidate for inclusion into the new Startup window. Ideally, the functionality of Datacatalog will be configurable on the code level (so different things can be enabled). There is already runtime configuration, namely unlocking of editing of other mapsets (third button from left - lock which is a toggle).

Thus, I would keep this ticket to be just about the Datacatalog, so if you want to pursue CLI/module-level API for removing mapsets (and locations), please open a new ticket (if it is okay with you). The fact that the functionality is in the GUI is definitively an argument for having it also in the command line (whether it is in a module or in the grass executable).

Note: See TracTickets for help on using tickets.