On Thu, Mar 31, 2011 at 2:54 PM, Maris Nartiss <span dir="ltr">&lt;<a href="mailto:maris.gis@gmail.com">maris.gis@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
You have to connect Your vector map to database at first. Go to<br>
Databases-&gt;Manage database-&gt;New table (v.db.addtable) and run<br>
v.category afterwards.<br>
<br></blockquote><div><br>That is exactly what I did.  In fact in my first message I wrote<br><br>&quot;My idea was to run v.db.addtable to create a new empty attribute table, 
then v.category to assign cat numbers and the v.to.db to compute and add
 to the attribute table the parameter I need (ie the length).<br>
The problem is that when I run v.category nothing happens, and the attribute table remains empty.&quot;<br><br>cheers<br>andrea<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Maris.<br>
<br>
<br>
2011/3/31, Andrea Pogliaghi &lt;<a href="mailto:andrea.pogliaghi@gmail.com">andrea.pogliaghi@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Maris,<br>
&gt;<br>
&gt; On Thu, Mar 31, 2011 at 10:25 AM, Maris Nartiss &lt;<a href="mailto:maris.gis@gmail.com">maris.gis@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt; as attributes belong to triangle froming nodes, how should output look<br>
&gt;&gt; like? Every triangle should get all three atributes? And what about<br>
&gt;&gt; lines? Two attributes, as every triangulation line has two nodes at<br>
&gt;&gt; their end?<br>
&gt;&gt;<br>
&gt;&gt; It makes sense that no attribute is associated to v.delaunay lines output<br>
&gt; because the features (lines in my case as I&#39;m using the -l switch) are<br>
&gt; different from the nodes (even if having an output attribute table<br>
&gt; containing, for instance, the attributes of the two nodes of each line would<br>
&gt; be useful), but that is not the point.<br>
&gt; The issue I&#39;m facing is that I want to create a new attribute table for<br>
&gt; these delaunay_lines with a new unique cat value for every line and compute<br>
&gt; the length of each line, as I need to know which is their min, max and avg.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Andrea<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Maris.<br>
&gt;&gt;<br>
&gt;&gt; 2011/3/30, Andrea Pogliaghi &lt;<a href="mailto:andrea.pogliaghi@gmail.com">andrea.pogliaghi@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt; ...<br>
&gt;&gt; &gt; Basically I run v.delaunay with the -l option to get lines instead of<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; polygons, I get the resulting vector, but there is no attribute tables<br>
&gt;&gt; &gt; associated to it.<br>
&gt;&gt; &gt; ...<br>
&gt;&gt; &gt; Ing. Andrea Pogliaghi<br>
&gt;&gt; &gt; Milano - Italy<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>