.TH g.mapsets 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBg.mapsets\fR\fR - Modifies the user's current mapset search path. .br Affects the user's access to data existing under the other mapsets in the current location. .SH KEYWORDS general, settings, search path .SH SYNOPSIS \fBg.mapsets\fR .br \fBg.mapsets help\fR .br \fBg.mapsets\fR [\-\fBlps\fR] [\fBmapset\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBaddmapset\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBremovemapset\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBfs\fR=\fIcharacter\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-l\fR" 4m .br List all available mapsets in alphabetical order .IP "\fB\-p\fR" 4m .br Print mapsets in current search path .IP "\fB\-s\fR" 4m .br Show mapset selection dialog .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBmapset\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Name(s) of existing mapset(s) .IP "\fBaddmapset\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Name(s) of existing mapset(s) to add to search path .IP "\fBremovemapset\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Name(s) of existing mapset(s) to remove from search path .IP "\fBfs\fR=\fIcharacter\fR" 4m .br Field separator .br Special characters: newline, space, comma, tab .br Default: \fIspace\fR .PP .SH DESCRIPTION For basic information about Grass \fImapset\fR, \fIlocation\fR and \fIdata base\fR refer to GRASS Quickstart. .PP A \fImapset\fR holds a distinct set of data layers, each relevant to the same (or a subset of the same) geographic region, and each drawn in the same map coordinate system. At the outset of every GRASS session, the user identifies a GRASS data base, location, and mapset that are to be the user's \fIcurrent data base\fR, \fIcurrent location\fR, and \fIcurrent mapset\fR for the duration of the session; any maps created by the user during the session will be stored under the \fIcurrent mapset\fR set at the session's outset. (see \fIg.mapset\fR [without an "s"] and \fIg.gisenv\fR for changing the mapset with a session) .PP The user can add, modify, and delete data layers that exist under his \fIcurrent mapset\fR. Although the user can also \fIaccess\fR (i.e., use) data that are stored under \fIother\fR mapsets in the same GRASS location using the mapname@mapsetname notation or mapset search path, the user can only make permanent changes (create or modify data) located in the \fIcurrent mapset\fR. The user's \fImapset search path\fR lists the order in which other mapsets in the same GRASS location can be searched and their data accessed by the user. The user can modify the listing and order in which these mapsets are accessed by modifying the mapset search path; this can be done using the \fIg.mapsets\fR command. This program allows the user to use other's relevant map data without altering the original data layer, and without taking up disk space with a copy of the original map. The mapname@mapsetname notation may be used irrespective of the mapset search path, i.e., any map found in another mapset with sufficient \fIg.access\fR privileges may be called in such a manner. .PP \fIg.mapsets\fR shows the user available mapsets under the current GRASS location, lists mapsets to which the user currently has access, and lists the order in which accessible mapsets will be accessed by GRASS programs searching for data files. The user is then given the opportunity to add or delete mapset names from his search path, or modify the order in which mapsets will be accessed. .PP When the user specifies the name of a data base element file (e.g., a particular vector map, raster map, imagery group file, etc.) to a GRASS program, the program searches for the named file under each of the mapsets listed in the user's mapset search path in the order listed there until the program finds a file of the given name. (Users can also specify a file by its mapset, to make explicit the mapset from which the file is to be drawn; e.g., the command: \fC .DS .br \fBg.copy rast=\fR\fI'soils.file@PERMANENT',my.soils\fR .br .DE \fR ensures that a new file named \fImy.soils\fR is to be a copy of the file \fIsoils.file\fR from the mapset PERMANENT.) .PP It is common for a user to have the special mapset \fBPERMANENT\fR included in his mapset search path, as this mapset typically contains finished base maps relevant to many applications. Often, other mapsets which contain sets of interpreted map layers will be likewise included in the user's mapset search path. Suppose, for example, that the mapset \fISoil_Maps\fR contains interpreted soils map layers to which the user wants access. The mapset \fISoil_Maps\fR should then be included in the user's \fIsearch path\fR variable. .PP The \fImapset search path\fR is saved as part of the current mapset. When the user works with that mapset in subsequent GRASS sessions, the previously saved mapset search path will be used (and will continue to be used until it is modified by the user with \fIg.mapsets\fR). .SH NOTES \fIg.mapsets\fR sets the current \fImapset search path\fR to the \fImapsets\fR named on the command line. If \fIg.mapsets\fR is typed but no \fImapset\fR names are specified by the user on the command line, the program will print the user's current mapset search path, list available mapsets, and prompt the user for a new mapset search path listing. .PP The \fIaddmapset\fR parameter allows for extending an existing \fImapset search path\fR. .PP Users can restrict others' access to their mapset files through use of the GRASS program \fIg.access\fR. Mapsets to which access is restricted can still be listed in another's mapset search path; however, access to these mapsets will remain restricted. .SH SEE ALSO \fI g.access, g.copy, g.gisenv, g.list, g.mapset \fR .SH AUTHOR Michael Shapiro, U.S.Army Construction Engineering Research Laboratory .PP Greg Koerper, ManTech Environmental Technology, Inc. .PP \fILast changed: $Date: 2011-11-08 10:42:51 +0100 (Tue, 08 Nov 2011) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team