Hi all,

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

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to