[GRASS-SVN] r65586 - in grass/trunk/lib: gis init vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 14 06:11:58 PDT 2015
Author: martinl
Date: 2015-07-14 06:11:58 -0700 (Tue, 14 Jul 2015)
New Revision: 65586
Modified:
grass/trunk/lib/gis/file_name.c
grass/trunk/lib/init/variables.html
grass/trunk/lib/vector/Vlib/map.c
Log:
rename GRASS_TMPDIR_MAPSET to GRASS_VECTOR_TMPDIR_MAPSET
Modified: grass/trunk/lib/gis/file_name.c
===================================================================
--- grass/trunk/lib/gis/file_name.c 2015-07-14 12:50:24 UTC (rev 65585)
+++ grass/trunk/lib/gis/file_name.c 2015-07-14 13:11:58 UTC (rev 65586)
@@ -63,10 +63,11 @@
\brief Builds full path names to GIS data files in temporary directory (for internal use only)
By default temporary directory is located
- $LOCATION/$MAPSET/.tmp/$HOSTNAME. If GRASS_TMPDIR_MAPSET is set to
- "0", the temporary directory is located in TMPDIR (environmental
- variable defined by the user or GRASS initialization script if not
- given).
+ $LOCATION/$MAPSET/.tmp/$HOSTNAME. If GRASS_VECTOR_TMPDIR_MAPSET is
+ set to "0", the temporary directory is located in TMPDIR
+ (environmental variable defined by the user or GRASS initialization
+ script if not given). Note that GRASS_VECTOR_TMPDIR_MAPSET variable
+ is currently used only by vector library.
\param[out] path buffer to hold resultant full path to file
\param element database element (eg, "cell", "cellhd", "vector", etc)
@@ -82,7 +83,7 @@
const char *env, *tmp_path;
tmp_path = NULL;
- env = getenv("GRASS_TMPDIR_MAPSET");
+ env = getenv("GRASS_VECTOR_TMPDIR_MAPSET");
if (env && strcmp(env, "0") == 0) {
tmp_path = getenv("TMPDIR");
}
Modified: grass/trunk/lib/init/variables.html
===================================================================
--- grass/trunk/lib/init/variables.html 2015-07-14 12:50:24 UTC (rev 65585)
+++ grass/trunk/lib/init/variables.html 2015-07-14 13:11:58 UTC (rev 65586)
@@ -278,7 +278,7 @@
<dd>[vectorlib]<br> If the environment variable
GRASS_VECTOR_TEMPORARY exists, GRASS vector library will operate
on temporary vector maps. New vector maps will be created in
- temporary directory (see GRASS_TMPDIR_MAPSET variable), existing
+ temporary directory (see GRASS_VECTOR_TMPDIR_MAPSET variable), existing
vector maps will be read (if found) also from this directory. It
may be set to either:
<ul>
@@ -297,7 +297,20 @@
or <em><a href="wxGUI.html">wxGUI</a></em>. They are used
internally by the GRASS modules and deleted automatically when
GRASS session is quited.</dd>
-
+
+ <dt>GRASS_VECTOR_TMPDIR_MAPSET</dt>
+ <dd> By default GRASS temporary directory is located in
+ <tt>$LOCATION/$MAPSET/.tmp/$HOSTNAME</tt>. If GRASS_VECTOR_TMPDIR_MAPSET is
+ set to '0', the temporary directory is located in TMPDIR
+ (environmental variable defined by the user or GRASS initialization
+ script if not given).
+
+ <p>
+ Important note: This variable is currently used only in vector
+ library. In other words the variable is ignored by raster or
+ raster3d library.
+ </dd>
+
<dt>GRASS_VECTOR_TOPO_DEBUG</dt>
<dd>[vectorlib, v.generalize]<br> If the environment variable
GRASS_VECTOR_TOPO_DEBUG
@@ -347,19 +360,6 @@
The default is set to the number of CPUs on the system.
Setting to '1' effectively disables parallel processing.</dd>
- <dt>GRASS_TMPDIR_MAPSET</dt>
- <dd> By default GRASS temporary directory is located in
- <tt>$LOCATION/$MAPSET/.tmp/$HOSTNAME</tt>. If GRASS_TMPDIR_MAPSET is
- set to '0', the temporary directory is located in TMPDIR
- (environmental variable defined by the user or GRASS initialization
- script if not given).
-
- <p>
- Important note: This variable is currently used only in vector
- library. In other words the variable is ignored by raster or
- raster3d library.
- </dd>
-
<dt>TMPDIR, TEMP, TMP</dt>
<dd>[Various GRASS GIS commands and wxGUI]<br>
<!-- what about Windows %TEMP% and http://trac.osgeo.org/grass/ticket/560#comment:21 ? -->
Modified: grass/trunk/lib/vector/Vlib/map.c
===================================================================
--- grass/trunk/lib/vector/Vlib/map.c 2015-07-14 12:50:24 UTC (rev 65585)
+++ grass/trunk/lib/vector/Vlib/map.c 2015-07-14 13:11:58 UTC (rev 65586)
@@ -468,7 +468,7 @@
}
closedir(dir);
- env = getenv("GRASS_TMPDIR_MAPSET");
+ env = getenv("GRASS_VECTOR_TMPDIR_MAPSET");
if (env && strcmp(env, "0") == 0) {
tmp = path;
}
More information about the grass-commit
mailing list