[GRASS-dev] layer names
landa.martin at gmail.com
Sun Oct 18 05:44:00 EDT 2009
most of the functions in Vlib takes layer number as argument. To
support layer names we need just change their prototypes to use 'const
char *' instead of 'int' and update all modules. Then layer will found
by number and if failed by name - see Vect_get_field2(). The second
approach would be to add new functions ending by '2', e.g.
Vect_cidx_find_all2(.., const char *layer, ...), etc.
What do you think? From my point of view would be better just change
prototypes without adding new and new functions which just takes layer
as a string...
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
More information about the grass-dev