[GRASS-dev] vectors invisible if has layer2 but no layer1

Maciej Sieczka tutey at o2.pl
Thu Oct 12 03:12:43 EDT 2006


Hamish wrote:
> Maciej Sieczka wrote:
>> I have noticed that if I have a vector that has categories in layer 2
>> and no cats in layer 1, d.vect by default doesn't display any of the
>> features, unless I specify layer=2 explicitely.
>>
>> Try this - create a vector 'map' without categories in any layer.
>> Display it - you see it, OK. Now add categories into layer 2 only:
>>
>> v.category in=map out=map_addcat_l2 option=add layer=2
>> d.erase
>> d.vect map_addcat_l2
>>
>> You see nothing. No good. Could that be fixed?
> 
> I'm not sure it is a bug,
> 
> d.vect --help
> ..
> Parameters:
> ..
>         layer   Layer number. If -1, all layers are displayed.
>                default: 1
> 
> seems clear to me.
> 
> are you asking that "-1" be the default?

Hmm, would make sense. Why should layer 1 be prefered? "All layers are
equal, but some are more equal than the other" ;)?

Maciek




More information about the grass-dev mailing list