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

Vaclav Petras wenzeslaus at gmail.com
Mon Nov 4 07:01:02 PST 2013


On Mon, Nov 4, 2013 at 5:28 AM, Martin Landa <landa.martin at gmail.com> wrote:

> Hi,
>
> 2013/11/4 Glynn Clements <glynn at gclements.plus.com>:
> >
> > 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().
>
> perfect, is there any volunteer for this job? Unfortunately I will not
> find time for that not earlier than in some weeks. And we should also
> check other V2() functions.
>
> Same here, maybe, in the meantime, I will add the depreciated attribute
there, that should be quick and it would be good to test it anyway.

Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131104/26ceb75b/attachment.html>


More information about the grass-dev mailing list