Browse Source

init: use correct name for 3D raster mask

The correct name is defined in include/raster3d.h as RASTER3D_MASK_MAP define.
The prompt from https://trac.osgeo.org/grass/changeset/48247 (rewritten from Python to Bash in https://trac.osgeo.org/grass/changeset/60216, https://trac.osgeo.org/grass/ticket/2284)
did not respect the new mask name from https://trac.osgeo.org/grass/changeset/47536 (from G3D_MASK to RASTER3D_MASK).


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73351 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 6 years ago
parent
commit
96f4a31f6c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/init/grass.py

+ 2 - 1
lib/init/grass.py

@@ -1759,8 +1759,9 @@ def bash_startup(location, location_name, grass_env_file):
     f.write("PS1='{name} {version} ({location}):\\w > '\n".format(
         name=grass_name, version=grass_version, location=location_name))
 
+    # TODO: have a function and/or module to test this
     mask2d_test = 'test -f "$LOCATION/cell/MASK"'
-    mask3d_test = 'test -d "$LOCATION/grid3/G3D_MASK"'
+    mask3d_test = 'test -d "$LOCATION/grid3/RASTER3D_MASK"'
 
     # double curly brackets means single one for format function
     f.write(