[GRASS-dev] [GRASS GIS] #2687: r.info picks map from current Mapset instead of PERMANENT

GRASS GIS trac at osgeo.org
Tue Jun 2 18:55:01 PDT 2015


#2687: r.info picks map from current Mapset instead of PERMANENT
-------------------------------------------------+-------------------------
 Reporter:  wenzeslaus                           |      Owner:  grass-dev@…
     Type:  defect                               |     Status:  new
 Priority:  blocker                              |  Milestone:  7.1.0
Component:  Raster                               |    Version:  svn-trunk
 Keywords:  r.info, mapset, search path,         |        CPU:  x86-64
  PERMANENT                                      |
 Platform:  Linux                                |
-------------------------------------------------+-------------------------
 In the following environment (GRASS Sample NC SPM Location):

 {{{
 > g.mapsets -p
 Accessible mapsets:
 user1 PERMANENT landsat
 > g.list t=rast -m p=land*
 landclass96 at PERMANENT
 landcover_1m at PERMANENT
 landuse96_28m at PERMANENT
 }}}

 I can run `r.univar`:

 {{{
 > r.univar landclass96
 ...
 n: 1554124
 minimum: 1
 maximum: 7
 ...
 }}}

 But `r.info` looks to a wrong Mapset:

 {{{
 > r.info landclass96
 WARNING: G__open(read): Unable to open
 '/home/vasek/grassdata/nc_spm_08_grass7_tests/user1/cellhd/landclass96':
          No such file or directory
 WARNING: G__open(read): Unable to open
 '/home/vasek/grassdata/nc_spm_08_grass7_tests/user1/cellhd/landclass96':
          No such file or directory
 ERROR: Unable to open header file for raster map <landclass96@>
 }}}

 Moreover, there is a `@` character in the `Unable to open...map
 <landclass96@>` message.

 You can get the same errors by running the automated test suite:

 {{{
 cd /grass/source/code/root
 ./bin.../grass71 ~/grassdata/nc_spm_08/PERMANENT/ --exec python -m
 grass.gunittest.main --location nc_spm_08 --location-type nc
 }}}

 {{{
 firefox testreport/index.html
 firefox testreport/lib/python/gunittest/test_assertions/index.html
 }}}

 You can see the results of automated tests also online:

 * http://fatra.cnr.ncsu.edu/grassgistests/summary_report/nc/index.html
 *
 http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-06-02-07-00/report_for_nc_spm_08_grass7_nc/testfiles.html
 *
 http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-06-02-07-00/report_for_nc_spm_08_grass7_nc/raster/r.slope.aspect/test_r_slope_aspect/index.html

 [[Image(http://fatra.cnr.ncsu.edu/grassgistests/summary_report/nc/tests_successful_plot.png,
 95%)]]

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2687>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list