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

Bartolomei.Chris Bartolomei.Chris at ensco.com
Tue Oct 31 16:10:47 PDT 2017


are you using the gui or in a bash shell?

In the gui, go to Settings, GRASS working environment, Change location and mapset

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.


Chris Bartolomei P.E.
bartolomei.chris at ensco.com
________________________________
From: grass-user <grass-user-bounces at lists.osgeo.org> on behalf of Rich Shepard <rshepard at appl-ecosys.com>
Sent: Tuesday, October 31, 2017 4:00:48 PM
To: grass-user at lists.osgeo.org
Subject: [GRASS-user] Switching locations on-the-fly

   I need to import a lot of data each having one of several projections. It
is quicker for me to create a new location for each one, import it, then
re-project it to the base location and a layer-specific mapset. This
involves invoking grass, creating a new location, importing the .shp or
.gdb, shutting down grass, restarting grass in the base location,
re-projecting the new layer, then removing the (temporary) importing
location.

   Is there a way to switch locations within a running grass instance,
equivalent to creating/switching mapsets within a location?

Rich

_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Duser&d=DwIGaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=-DpjZEMiCvhV9YNdBPtwe5hKWMSur_IQdmTdKBWPf74&s=Qrgm5-2UvnsH5bu9JZOPCFqQOHDfnS13uT1fiQgsDfI&e=

________________________________

The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.


More information about the grass-user mailing list