[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-dev
Subject:    Re: [GRASS-dev] layer names
From:       Martin Landa <landa.martin () gmail ! com>
Date:       2009-10-23 20:42:32
Message-ID: f8fe65c40910231342l47121db5p8dfbb255d816815d () mail ! gmail ! com
[Download RAW message or body]

Hi,

2009/10/18 Markus Metz <markus.metz.giswork@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
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic