[GRASS-dev] layer names

Martin Landa landa.martin at gmail.com
Fri Oct 23 16:42:32 EDT 2009


Hi,

2009/10/18 Markus Metz <markus.metz.giswork at googlemail.com>:

[...]

>> 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...
>>
>
> I think using new Vect_get_field2() in modules is sufficient to support
> layer names. When copying a vector map or only dblinks, layer names are
> already automatically copied as well. It's more like making layer names
> available to users through a modified layer input option that can take both
> numbers and names?

right, probably Vect_get_field_number() (added in r39620) would be
sufficient solution.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list