#70: i.target from GUI: strip @mapset part
---------------------+------------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: |
---------------------+------------------------------------------------------
Hi,
if you call i.target from a GUI and select a group it appends @mapset. If
you run it like that it takes the full name literally and instead of
updating the group's target it creates a new group of name "group@mapset".
Either i.target or I_put_target() should check that if the @mapset part is
given it refers to the current mapset, then strip off the @mapset part.
Otherwise you end up with
{{{
GRASS> g.list group
group
group@mapset
group@mapset@mapset
etc.
}}}
I changed the group option gisprompt from old,group,group to any,gr,gr.
This makes the GUI group picker button go away, but perhaps the GUI picker
button should be coded to remain in that case?
Or to solve this should we try changing the gisprompt to mapset,gr,gr so
it calls G_ask_in_mapset()?
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/70>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/