[GRASS-SVN] r73099 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 14 19:24:28 PDT 2018


Author: wenzeslaus
Date: 2018-08-14 19:24:28 -0700 (Tue, 14 Aug 2018)
New Revision: 73099

Modified:
   grass/trunk/lib/init/grass.py
   grass/trunk/lib/init/grass7.html
Log:
init: update doc for --tmp-location without -c (finishes r73096, see #3585)

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2018-08-15 02:10:00 UTC (rev 73098)
+++ grass/trunk/lib/init/grass.py	2018-08-15 02:24:28 UTC (rev 73099)
@@ -367,7 +367,7 @@
     executable=_("GRASS module, script or any other executable"),
     executable_params=_("parameters of the executable"),
     standard_flags=_("standard flags"),
-    tmp_location=_("create temporary location (use with -c and --exec flags)"),
+    tmp_location=_("create temporary location (use with the --exec flag)"),
     )
 
 

Modified: grass/trunk/lib/init/grass7.html
===================================================================
--- grass/trunk/lib/init/grass7.html	2018-08-15 02:10:00 UTC (rev 73098)
+++ grass/trunk/lib/init/grass7.html	2018-08-15 02:24:28 UTC (rev 73099)
@@ -55,7 +55,8 @@
 <dt><b>--tmp-location</b>
 <dd> Run using a temporary location which is created based on the given
 coordinate reference system and deleted at the end of the execution
-(use with -c and --exec flags)
+(use the --exec flag).
+The active mapset will be PERMANENT.
 
 </dl>
 
@@ -373,19 +374,19 @@
 computation in a shell script:
 
 <div class="code"><pre>
-grass75 -c elevation.tiff --tmp-location --exec test.sh
+grass75 --tmp-location elevation.tiff --exec test.sh
 </pre></div>
 
 The same, but using an EPSG code and a Python script:
 
 <div class="code"><pre>
-grass75 -c EPSG:3358 --tmp-location --exec test.py
+grass75 --tmp-location EPSG:3358 --exec test.py
 </pre></div>
 
 Finally, for special cases, we can create an XY location without any CRS:
 
 <div class="code"><pre>
-grass75 -c --tmp-location --exec test.py
+grass75 --tmp-location XY --exec test.py
 </pre></div>
 
 Temporary location is automatically deleted after computation,
@@ -397,7 +398,7 @@
 temporary location:
 
 <div class="code"><pre>
-grass75 -c EPSG:3358 --tmp-location --exec g.proj -p
+grass75 --tmp-location EPSG:3358 --exec g.proj -p
 </pre></div>
 
 A temporary XY location with single command is useful, e.g. to show
@@ -404,7 +405,7 @@
 help text of a module:
 
 <div class="code"><pre>
-grass75 -c --tmp-location --exec r.neighbors --help
+grass75 --tmp-location XY --exec r.neighbors --help
 </pre></div>
 
 <h4>Troubleshooting</h4>



More information about the grass-commit mailing list