just to make it clearer.... if I do the above steps with v.delaunay, then I create the table with v.db.addtable and then I run v.category, it works fine.<br>If I do the same steps with v.delaunay with the -l flag (and I have to, since I need the lines), then it doesn't.<br>
<br>cheers<br>Andrea<br><br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 4:37 PM, Andrea Pogliaghi <span dir="ltr"><<a href="mailto:andrea.pogliaghi@gmail.com">andrea.pogliaghi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Thu, Mar 31, 2011 at 2:54 PM, Maris Nartiss <span dir="ltr"><<a href="mailto:maris.gis@gmail.com" target="_blank">maris.gis@gmail.com</a>></span> wrote:<br>
</div><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,<div class="im"><br>
You have to connect Your vector map to database at first. Go to<br>
Databases->Manage database->New table (v.db.addtable) and run<br>
v.category afterwards.<br>
<br></div></blockquote><div><br>That is exactly what I did. In fact in my first message I wrote<div class="im"><br><br>"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."<br><br></div>cheers<br><font color="#888888">andrea<br> </font></div><div><div></div><div class="h5"><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 <<a href="mailto:andrea.pogliaghi@gmail.com" target="_blank">andrea.pogliaghi@gmail.com</a>>:<br>
<div><div></div><div>> Hi Maris,<br>
><br>
> On Thu, Mar 31, 2011 at 10:25 AM, Maris Nartiss <<a href="mailto:maris.gis@gmail.com" target="_blank">maris.gis@gmail.com</a>> wrote:<br>
><br>
>> Hello,<br>
>> as attributes belong to triangle froming nodes, how should output look<br>
>> like? Every triangle should get all three atributes? And what about<br>
>> lines? Two attributes, as every triangulation line has two nodes at<br>
>> their end?<br>
>><br>
>> It makes sense that no attribute is associated to v.delaunay lines output<br>
> because the features (lines in my case as I'm using the -l switch) are<br>
> different from the nodes (even if having an output attribute table<br>
> containing, for instance, the attributes of the two nodes of each line would<br>
> be useful), but that is not the point.<br>
> The issue I'm facing is that I want to create a new attribute table for<br>
> these delaunay_lines with a new unique cat value for every line and compute<br>
> the length of each line, as I need to know which is their min, max and avg.<br>
><br>
> Cheers,<br>
> Andrea<br>
><br>
><br>
><br>
>><br>
>> Maris.<br>
>><br>
>> 2011/3/30, Andrea Pogliaghi <<a href="mailto:andrea.pogliaghi@gmail.com" target="_blank">andrea.pogliaghi@gmail.com</a>>:<br>
>> > Hi all,<br>
>> > ...<br>
>> > Basically I run v.delaunay with the -l option to get lines instead of<br>
>> > the<br>
>> > polygons, I get the resulting vector, but there is no attribute tables<br>
>> > associated to it.<br>
>> > ...<br>
>> > Ing. Andrea Pogliaghi<br>
>> > Milano - Italy<br>
>> ><br>
>><br>
><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>