[GRASS-dev] Re: [GRASS GIS] #70: i.target from GUI: strip @mapset
part
GRASS GIS
trac at osgeo.org
Wed Feb 27 07:30:00 EST 2008
#70: i.target from GUI: strip @mapset part
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by glynn):
Replying to [ticket:70 hamish]:
> 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 at 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.
> 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()?
To solve this, i.group needs to be modified to handle the @mapset part
correctly. That is the only course of action which can accurately be said
to *solve* the issue.
There may be workarounds, but a workaround isn't the same thing as a
solution.
And any function named G_ask_<something> shouldn't be used for anything.
Those functions cause problems for GUI use (requiring a terminal), and
will disappear the moment that 7.x comes into being.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/70#comment:1>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/
More information about the grass-dev
mailing list