[GRASS-dev] Re: [GRASS GIS] #1051: wxgui: SEARCH_PATH corruption
GRASS GIS
trac at osgeo.org
Sat May 15 14:57:33 EDT 2010
#1051: wxgui: SEARCH_PATH corruption
-----------------------+----------------------------------------------------
Reporter: msieczka | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords:
Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by glynn):
Replying to [ticket:1051 msieczka]:
> The mapset search path in mapset2 is wrong:
>
{{{
$ g.gisenv get=MAPSET
mapset2
g.mapsets -p
mapset1 PERMANENT mapset2
}}}
>
> If maps of the same names exist in mapset1 and mapset2, GRASS will pick
the one from mapset1 although the current mapset is mapset2. This might
lead to various troubles.
This isn't necessarily a problem. GRASS itself doesn't care whether the
current mapset is first in the search path, or even if it's in the search
path at all.
OTOH, it's probably a good idea for the GUI interface to place additional
mapsets after the current mapset, at least by default.
However: I'd like to take this opportunity to remind programmers that an
unqualified input map name does '''NOT''' necessarily refer to the map of
that name in the '''current''' mapset, but to the first map with that name
found in the mapset search path (which may '''or may not''' have the
current mapset first).
If you intend to refer specifically to a map in the current mapset, you
'''need''' to specify the mapset.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1051#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list