[GRASS-user] Switching locations on-the-fly

Markus Metz markus.metz.giswork at gmail.com
Wed Nov 1 00:38:07 PDT 2017


On Wed, Nov 1, 2017 at 12:21 AM, Rich Shepard <rshepard at appl-ecosys.com>
wrote:
>
> On Tue, 31 Oct 2017, Bartolomei.Chris wrote:
>
>> are you using the gui or in a bash shell?
>
>
> Chris,
>
>   Both. I'll use the GUI when reprojecting because it's less typing than
the
> whole path name to the source. Most often I use the shell (bash).
>
>> In the gui, go to Settings, GRASS working environment, Change location
and mapset
>
>
>   Good to know. I've not explored all the GUI menus.
>
>> That will change it all on the fly. You can do this in a batch script as
>> well but it's a little tricky - your .bash_history changes with changed
>> locations and you need to reset your GISDBASE, MAPSET, and LOCATION
>> internal GRASS variables, etc. Let me know if you want those steps and
>> I'll dig them out of an old script I have.
>
>
>   When you can, please share them with me.

You can use g.mapset to switch locations (also GRASS databases) on the fly.
With g.mapset, the .bash_history of the initial location will be used to
record command history.

Markus M
>
> Much appreciated,
>
> Rich
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20171101/0398b3bf/attachment-0001.html>


More information about the grass-user mailing list