[GRASS-dev] [GRASS GIS] #3491: i.group cannot read from other mapsets
GRASS GIS
trac at osgeo.org
Tue Apr 30 14:55:10 PDT 2019
#3491: i.group cannot read from other mapsets
--------------------------+-------------------------
Reporter: sbl | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.8.0
Component: Imagery | Version: unspecified
Resolution: | Keywords: i.group
CPU: All | Platform: All
--------------------------+-------------------------
Comment (by sbl):
Partly fixed I would say:
{{{
grass77 ./nc_spm_full_v2alpha/user1/ --exec i.group group=mygroup
subgroup=subgroup input=aspect,basin,boundary --o
Starting GRASS GIS...
Cleaning up temporary files...
Executing <i.group group=mygroup subgroup=subgroup
input=aspect,basin,boundary --o> ...
Adding raster map <aspect at PERMANENT> to group
Adding raster map <basin at PERMANENT> to group
Adding raster map <boundary at PERMANENT> to group
Adding raster map <aspect at PERMANENT> to subgroup
Adding raster map <basin at PERMANENT> to subgroup
Adding raster map <boundary at PERMANENT> to subgroup
Execution of <i.group group=mygroup subgroup=subgroup
input=aspect,basin,boundary --o> finished.
Cleaning up temporary files...
grass77 ./nc_spm_full_v2alpha/stefan --exec i.group group=mygroup at user1 -l
Starting GRASS GIS...
Cleaning up temporary files...
Executing <i.group group=mygroup at user1 -l> ...
group <mygroup> references the following raster maps
-------------
<aspect at PERMANENT> <basin at PERMANENT> <boundary at PERMANENT>
-------------
Execution of <i.group group=mygroup at user1 -l> finished.
Cleaning up default sqlite database ...
Cleaning up temporary files...
}}}
However, groups from other mapsets are still not fullly useable e.g. in
i.cluster.
{{{
grass77 ./nc_spm_full_v2alpha/stefan/ --exec i.cluster group=mygroup at user1
subgroup=subgroup signaturefile=sign classes=3
Starting GRASS GIS...
Cleaning up temporary files...
Executing <i.cluster group=mygroup at user1 subgroup=subgroup
signaturefile=sign classes=3> ...
WARNING: Subgroup <subgroup> doesn't have any raster maps
ERROR: Subgroup must have at least 2 raster maps
Execution of <i.cluster group=mygroup at user1 subgroup=subgroup
signaturefile=sign classes=3> finished.
Cleaning up default sqlite database ...
Cleaning up temporary files...
}}}
In addition, i.cluster seems to try to write to the imagery group
directory in the other mapset (the signature file), so further adjustments
downstreams seem to be required...
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3491#comment:5>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list