<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have a similar goal, but the solution in the case below will not work for me.<div><br></div><div><div>I have three points A,B & C that I have linked together through Delaunay triangulation;</div><div style="font-family: 'Courier New'; "><br></div><div style="font-family: 'Courier New'; ">       A</div><div style="font-family: 'Courier New'; ">       /\</div><div style="font-family: 'Courier New'; ">      /  \</div><div style="font-family: 'Courier New'; ">     /    \</div><div style="font-family: 'Courier New'; ">    /      \</div><div style="font-family: 'Courier New'; ">   /        \</div><div style="font-family: 'Courier New'; ">  /          \</div><div style="font-family: 'Courier New'; "> /____________\</div><div style="font-family: 'Courier New'; ">B              C</div><div style="font-family: 'Courier New'; "><br></div><div>I want to create a new attribute for each point that is the average of the length of all the lines attaching each point to it's neighbours.</div><div>So if;</div><div>B->A = 1.0m</div><div>A->C = 0.8m</div><div>C->B = 0.6m</div><div><br></div><div>Then</div><div>A = (1.0m + 0.8m) = 0.9m</div><div>B = (1.0m + 0.6m) = 0.8m</div><div>C = (0.6m + 0.8m) = 0.7m</div><div><br></div><div>Creating the Delaunay triangles and uploading the length of each face is easy, but I'm not entirely clear on how to relate the length of those vectors back to the points they were derived from. Any help would be greatly appreciated.</div><div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div><br></div><div style="font-family: 'Courier New'; "><br></div><div><div>On 2012-06-08, at 11:10 AM, Markus Metz wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Fri, Jun 8, 2012 at 2:25 PM, Jaromír Kamler <<a href="mailto:kamler@centrum.cz">kamler@centrum.cz</a>> wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have two vectors imported from SHP. One contains lines (areas), which<br></blockquote><blockquote type="cite">represents sites and in other are texts with cost of sites. I imported them<br></blockquote><blockquote type="cite">to GRASS. Texts with costs of ground are now points with cost in attribute<br></blockquote><blockquote type="cite">table and I turned circuid lines to the areas with centroids.I need copy<br></blockquote><blockquote type="cite">costs from attribute table of costs to the attribute table of sites vector.<br></blockquote><blockquote type="cite">I have no key for connection of this tables. Only one "key" is their<br></blockquote><blockquote type="cite">position, because points with cost attribute are above corresponding areas.<br></blockquote><blockquote type="cite">One point with cost of ground is above one area. How get cost of<br></blockquote><blockquote type="cite">corresponding point to the corresponding attribute of ground? I do not see<br></blockquote><blockquote type="cite">any simple possibility.<br></blockquote><br>If both vectors are available as shapefiles, you could put the two<br>shapefiles into one directory (with no other shapefiles in it) and<br>then try something like<br><br>v.in.ogr dsn=/path/to/folder/with/shapefiles/ type=boundary,centroid<br><br>With type=boundary,centroid, lines will be converted to boundaries and<br>points to centroids. Attributes attached to sites (points) will now be<br>attached to areas, nothing else to do.<br><br>Markus M<br>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/grass-user<br></div></blockquote></div><br></div></body></html>