![]() |
![]()
| ![]() |
![]()
NAMEg.mapset - Changes/reports current mapset.
KEYWORDSgeneral, settings SYNOPSISg.mapset
Flags:Parameters:
DESCRIPTIONg.mapset changes the current working mapset, project (formerly known as location), or GISDBASE (directory with one or more projects). With g.mapset, the shell history (i.e. .bash_history file of the initial project will be used to record the command history. NOTESBy default, the shell continues to use the history for the old
mapset. To change this behaviour the history can be switched to record in
the new mapset’s history file as follows:
# bash example history -w history -r /"$GISDBASE/$LOCATION/$MAPSET"/.bash_history HISTFILE=/"$GISDBASE/$LOCATION/$MAPSET"/.bash_history EXAMPLESPrint the name of the current mapsetTo print the name of the current mapset, use the -p command
as shown below:
g.mapset -p List available mapsetsTo list available mapsets, use the -l command as shown
below:
g.mapset -l This should list all the mapsets, such as: "landsat new PERMANENT user1." Change the current mapsetTo change the current mapset to "user1" use the
following command:
g.mapset mapset=user1 project=nc_spm_08_grass7 You should receive the following message: "Mapset switched. Your shell continues to use the history for the old mapset." Create a new mapsetTo create a new mapset, use the -c tag as shown below:
g.mapset -c mapset=new project=nc_spm_08_grass7 SEE ALSOg.gisenv, g.mapsets AUTHORRadim Blazek SOURCE CODEAvailable at: g.mapset source code (history) Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d Main index | General index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|