<div dir="ltr"><div>Dear user list,<br></div><div><br></div><div>The (main) GRASS GIS executable, usually available as simply `grass` on most systems has now a new option (flag/parameter) in trunk (aka 7.5). The option is called --tmp-location.</div><div><br></div><div>When specified, GRASS GIS automatically creates an new (and empty) location based on provided EPSG code or georeferenced file (similarly to what -c flag does). Newly it is also possible to provide string "XY" instead of EPSG to create XY (non-georeferenced) location.</div><div><br></div><div>This temporary location has only PERMANENT mapset and the whole location is removed. The location is created in a temporary directory (which is also deleted at the end).</div><div><br></div><div>The flag --tmp-location is meant to be used together with --exec and it is a part of a lager endeavor to make the CLI easier for use from outside of the GRASS GIS session.</div><div><br></div><div>If you are interested, please, test this new functionality. It is an opportunity to provide feedback before this feature lands in the 7.6 release.<br></div><div><br></div><div>Here are some things to try:<br></div><div><br></div><div>* Execute a module in a location created based on EPSG:<br><br>  grass --tmp-location EPSG:3358 --exec g.region -p<br></div><div><br></div><div>* Execute Python script in a location created based on EPSG:<br><br>  grass --tmp-location EPSG:3358 --exec script.py<br></div><div><br></div><div>* Examine the created location using a Bash command:</div><div><br></div><div>  grass --tmp-location EPSG:3358 --exec bash -c "g.proj -p && g.region -p && g.mapset -p && g.gisenv GISDBASE,LOCATION_NAME sep=/"<br></div><div><br></div><div></div>* Get SRS/CRS for a file:<br><br>  grass --tmp-location ~/data/elevation.tiff --exec g.proj -p<br><br>* Get help text for a module:<br><br>  grass --tmp-location XY --exec r.neighbors --help<br><div><br></div><div>See the documentation and `grass --help` for more hints (and let me know how these can be enhanced).</div><div><br></div><div>Best regards,</div><div>Vaclav<br></div><div><br></div><div><br></div><a href="https://trac.osgeo.org/grass/ticket/3537">https://trac.osgeo.org/grass/ticket/3537</a><br><a href="https://trac.osgeo.org/grass/ticket/3585">https://trac.osgeo.org/grass/ticket/3585</a><br><div><a href="https://trac.osgeo.org/grass/ticket/3586">https://trac.osgeo.org/grass/ticket/3586</a></div><div><a href="https://trac.osgeo.org/grass/changeset/72790">https://trac.osgeo.org/grass/changeset/72790</a></div><div><a href="https://trac.osgeo.org/grass/changeset/73096">https://trac.osgeo.org/grass/changeset/73096</a><br></div><div><a href="https://trac.osgeo.org/grass/changeset/73098">https://trac.osgeo.org/grass/changeset/73098</a><br></div><div><a href="https://trac.osgeo.org/grass/changeset/73099">https://trac.osgeo.org/grass/changeset/73099</a></div><div><br></div><br></div>