<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="preferred-charset"
bgcolor="#FFFFFF" text="#000000">
On 03/28/2012 08:11 PM, Helena Herrera wrote:
<blockquote
cite="mid:CACCE9tg4=OQY2vcVy51zFRRWYrXM+k18azfqQH6+2boN99DaSQ@mail.gmail.com"
type="cite">
<div>Greetings</div>
<div> </div>
<div>I have a raster layer and a vector point layer and I need to
associate pixel values with points:</div>
</blockquote>
<br>
When you say "associate" If you mean to add the raster values to a
column in the point vector attribute table, then v.what.rast is what
you're looking for.<br>
<br>
<blockquote
cite="mid:CACCE9tg4=OQY2vcVy51zFRRWYrXM+k18azfqQH6+2boN99DaSQ@mail.gmail.com"
type="cite">
<div>1- pixel values that are over points;</div>
<div>2- 3x3 pixel neighbor pixel values over a point.</div>
</blockquote>
<br>
Create a new raster with r.neighbors then run v.what.rast again to
upload these 3x3 neighborhood values to another column in the point
vector. <br>
<br>
<blockquote
cite="mid:CACCE9tg4=OQY2vcVy51zFRRWYrXM+k18azfqQH6+2boN99DaSQ@mail.gmail.com"
type="cite">
<div>Is this possible do to in a more automatic way than query
each by each point?</div>
</blockquote>
<br>
Here are the steps:<br>
v.db.addcol vector_map col="rast_val double, rast_val_3x3 double"<br>
v.what.rast vector_map rast=raster_map col=rast_val<br>
r.neighbors raster_map out=raster_map_3x3 # assumes averaging a 3x3
window <br>
v.what.rast vector_map rast=raster_map_3x3 col=rast_val_3x3<br>
<br>
<blockquote
cite="mid:CACCE9tg4=OQY2vcVy51zFRRWYrXM+k18azfqQH6+2boN99DaSQ@mail.gmail.com"
type="cite">
<div>Thanks</div>
<div>Regards</div>
<div>helena</div>
<br>
This mail was received via Mail-SeCure System.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<p><br>
</p>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
GIS Consultant, Arava Development Co.
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a></pre>
</body>
</html>