Hi Mike,<div><br></div><div>Ah, I understand. Yeah, that's a bit more complicated. I've had to do stuff like that before and found a combination of raster and vector analysis best. Check out this wiki entry:</div><div>

<a href="http://grass.osgeo.org/wiki/Vector_aggregate_values">http://grass.osgeo.org/wiki/Vector_aggregate_values</a></div><div><br></div><div>If you convert your vectors to rasters beforehand this should do the trick for you. Note that you'll need to change the parameters in r.statistics to give you averages rather than sums, but everything else should be almost directly useable, if I've understood you correctly.</div>

<div><br></div><div>Best,</div><div>Daniel<br clear="all">

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"></span></p><p>--<br></p><p>B.Sc. Daniel Lee<br>

Geschäftsführung für Forschung und Entwicklung<br>ISIS - International Solar Information Solutions GbR<br>Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder<br></p><p>Softwarecenter 3<br>35037 Marburg<br>Festnetz: <a value="+4964213796256" style="color:rgb(28,81,168)">+49 6421 379 6256</a><br>

Mobil: <a value="+4917661277269" style="color:rgb(28,81,168)">+49 176 6127 7269</a><br>E-Mail: <a href="mailto:Lee@isi-solutions.org" style="color:rgb(28,81,168)" target="_blank">Lee@isi-solutions.org</a><br>Web: <a href="http://www.isi-solutions.org/" style="color:rgb(28,81,168)" target="_blank">http://www.isi-solutions.org</a></p>

<p></p><br>
<br><br><div class="gmail_quote">2012/6/10 Michael Perdue <span dir="ltr"><<a href="mailto:michael_perdue@yahoo.ca" target="_blank">michael_perdue@yahoo.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Thanks Daniel,<div><br></div><div>Unfortunately it doesn't work the way I need it to. It looks like v.what.vect uploads the first (or last) feature that it finds in "qmap" to "input". I need the values from every feature. Or better yet, the average of those values.</div>

<div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div><div class="h5"><div><br><div><div><div>On 2012-06-09, at 2:50 AM, Daniel Lee wrote:</div><br><blockquote type="cite">Hi Mike,<div><br></div><div>Couldn't you use v.what.vect to upload the values from the lines to the points? They're collocated, right?</div>

<div><br></div><div>Best,</div><div>Daniel<br clear="all"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:13px;font-family:arial,sans-serif"></span></p>
<p>
--<br></p><p>B.Sc. Daniel Lee<br>

Geschäftsführung für Forschung und Entwicklung<br>ISIS - International Solar Information Solutions GbR<br>Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder<br></p><p>Softwarecenter 3<br>35037 Marburg<br>Festnetz: <a value="+4964213796256" style="color:rgb(28,81,168)">+49 6421 379 6256</a><br>



Mobil: <a value="+4917661277269" style="color:rgb(28,81,168)">+49 176 6127 7269</a><br>E-Mail: <a href="mailto:Lee@isi-solutions.org" style="color:rgb(28,81,168)" target="_blank">Lee@isi-solutions.org</a><br>Web: <a href="http://www.isi-solutions.org/" style="color:rgb(28,81,168)" target="_blank">http://www.isi-solutions.org</a></p>

<div><br></div><br>
<br><br><div class="gmail_quote">2012/6/9 Michael Perdue <span dir="ltr"><<a href="mailto:michael_perdue@yahoo.ca" target="_blank">michael_perdue@yahoo.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">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><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>

<blockquote type="cite"><div>On Fri, Jun 8, 2012 at 2:25 PM, Jaromír Kamler <<a href="mailto:kamler@centrum.cz" target="_blank">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" target="_blank">grass-user@lists.osgeo.org</a><br>



<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>




grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>