[GRASS-dev] use G_find_raster2() instead of G_find_raster()

Glynn Clements glynn at gclements.plus.com
Sun Nov 3 17:33:54 PST 2013


Martin Landa wrote:

> >> But I'm not able to decide on which occasion I want which function.
> >> Someday, I can try to call both functions with different map/mapset
> >> combinations but reading from manual would be more effective.
> >
> > Please use G_find_raster2() always (similarly for the other G_find_*
> > functions). G_find_raster() exists for backward compatibility only.
> > Having it modify the map name in-place has been the source of
> > countless bugs.
> 
> it would be probably better to replace G_find_raster() by
> G_find_raster2() in G7. Any objections?

Not from me. For code which specifically needs an unqualified name,
use G_unqualified_name() or G_name_is_fully_qualified().

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list