I have some mapsets and i want to assemble them into one new mapset and have everything into it. How do i do it?

  • Why? you can access each mapset from one mapset – gene May 28 '15 at 19:49
  • i think i understand. Can you provide info on how to do it? – gsa May 28 '15 at 19:59
  • 1
    Menu Settings/GRASS Working environment/Mapset access (g.mapset) – gene May 28 '15 at 20:08

Option 1 (if you have many maps, maybe too much effort):

Option 2:

  • Simply use g.mapsets (or g.mapsets -s for a GUI variant)) to add the other mapsets to the search path of the actually mapset and voilà you see all the maps.

Option 3:

  • You can "hop" from one mapset to the next in a running session with g.mapset (note the absence of the 's'). Of course this is also reachable from the menu.
  • worked great mate! – gsa May 30 '15 at 12:52

If you want to have the maps copied in the new Mapset, use:

  • g.copy to copy one by one, e.g. g.copy raster=streams@practice1,streams
  • g.copyall to copy all at once (available in GRASS Addons, use g.extension g.copyall or GUI to install it)
  • you may want to delete the original maps (using g.remove) or whole Mapsets in order to save space

If you want to just access the maps for reading, use:

  • use g.mapsets as markusN already suggested, for example g.mapsets mapset=practice1,practice2 operation=add

To give a complete picture, in case Mapsets are in different Locations but Locations have exactly the same (!) projection and coordinate system, you can copy the Mapsets as directories. If you want to copy just few maps or you don't mind scripting, it is safer to use the "pack" modules (e.g. r.pack).

If you are not sure or if Locations have different projection, you have to use "proj" modules (e.g. r.proj) or g.proj.all module available in GRASS addons.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.