Ticket #70 (new defect)
imagery modules: strip @mapset part
| Reported by: | hamish | Owned by: | grass-dev@… |
|---|---|---|---|
| Priority: | major | Milestone: | 6.4.0 |
| Component: | Default | Version: | svn-trunk |
| Keywords: | imagery | Cc: | Paula.Sankelo@… |
| Platform: | CPU: |
Description
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

