Associate database/location/mapset with workspace file
|Reported by:||wenzeslaus||Owned by:||wenzeslaus|
|Keywords:||workspace, location, wxGUI, startup, save, load||Cc:|
Save the database/location/mapset in a workspace file. When workspace is loaded, it should switch it to the given database/location/mapset as with Settings > GRASS working environment > ...
Before the switch, it should check if the mapset dir exist and if it is a mapset. When that fails (data moved, using different computer, ...), offer user option to not change workspace (a "Cancel" button) or open the workspace without the change of mapset (the current behavior) or let user provide the right database/location/mapset.
Additionally, upon loading, we could check if the layers in Layer Manager exist. (But that might be solved in some other way in GUI - this information is currently not conveniently accesible - only when adding a layer and rendering.