[GRASS-dev] grass7: passing fullyqualified names to G_ fns
Martin Landa
landa.martin at gmail.com
Thu Aug 7 06:37:11 EDT 2008
Hi,
there are couple of functions which allow passing fully qualified map
name even they have mapset argument available.
E.g.
G__open() where you can pass name as fully qualified, then 'mapset'
argument is ignored. Maybe this behaviour could be changed in GRASS 7,
either to require not-fully qualified names or just to omit 'mapset'
argument and expect that name is fully qualified? First choice seems
to be more reasonable.
Currently functions G_find_cell / G_find_cell2 return mapset name or
NULL. Maybe we could eliminate G_find_*2 function by adding a new
argument.
G_find_cell(fname, mapset, name)
where name is char * to not-fully qualified name (allocated by G_store())
or just
G_find_cell(fname, mapset, NULL) (as G_find_cell2)
Also G_find_cell() could be renamed to G_find_raster() and
G_find_grid3() to G_find_raster3d().
?
Martin
PS: still in the beginning at learning GRASS libraries:-)
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-dev
mailing list