I'm having some doubts on the layer mechanism.<br>Two questions in this point.<br><br>1) Creating a new layer (ie a new connection between a vector and a DB table)<br>I've imported a vector (rivers) through v.in.ogr, then I've cloned the original table:<br>
>> db.copy from_table=rivers to_table=rivers_clone<br>I've created a new connection:<br>>> v.db.connect map=rivers table=rivers_clone layer=2<br><br>At this point I supposed that the last command had created all the needed structures and fields for the new layer (2), but if I print the categories:<br>
>> v.category input=rivers layer=2 option=print<br>no categories are displyed (while they are listed if I choose layer 1)<br><br>Question: I thought that a new connection used the same vector categories, but it seems I was wrong. How to make the layer 2 use the same vactor categories from layer 1?<br>
<br>2) I haven't understood the purpose of v.category chlayer option.<br>The manual says that the commands change layer numbers. If I understand it correctly, it changes the numbering of the vector-db connections, right? Whatever it means I wonder why a new vector is created. If I have a vector with layers 1,2 I thought that chlayer let me swap the numbers, but if it creates a new vector it doesn't change the layer numbers, it creates a new layer with the new layer number... I'm confused<br>
<br>Help :)<br>thx,<br>giovanni<br>