<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 12:06 PM, Andres Kuusk <span dir="ltr"><<a href="mailto:andres@to.ee" target="_blank">andres@to.ee</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Hello!<br>
<br>
Vector commands v.what.vect and v.distance do not fill the attribute column of a point vector.<br>
<br>
I created small test vectors, a vector map 'varea' of area type which has an area polygon, and a vector map of points 'vpoints' - 191 GPS way-points, 135 of which are inside the polygon.<br>
<br>
The command<br>
<br>
v.what.vect map=vpoints column=aid query_map=varea query_column=aid<br>
<br>
returns:<br>
<br>
Finding nearest features...<br>
Update vector attributes...<br>
191 categories - no nearest feature found<br></blockquote><div><br></div><div>I tried similar example, but it seems to work for me, perhaps you could send us reproducible example which uses North Carolina sample datatset?</div><div><br></div><div>Thank you,</div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The same result I get using v.distance:<br>
<br>
v.distance from=vpoints to=varea dmax=0. upload=to_attr column=aid to_column=aid<br>
<br>
Finding nearest features...<br>
Update vector attributes...<br>
191 categories - no nearest feature found<br>
<br>
If I omit the option 'dmax=0.' all points get the attribute 'aid', also the points outside the polygon.<br>
Both vectors have several columns in the table of attributes.<br>
<br>
<br>
The OS is OpenSUSE-13.1, 3.11.10-25-desktop, x86_64.<br>
The problem is there in:<br>
<br>
GRASS-7.0.0-2.42 from the repository <a href="http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.1" rel="noreferrer" target="_blank">http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.1</a><br>
<br>
GRASS-7.1 SVN r65785M<br>
(GRASS GIS 7.1.svn r65785M compilation log: No errors detected.)<br>
<br>
GRASS-7.0 SVN r58582.<br>
<br>
An old svn-version of 7.0 did the work (r51370):<br>
v.what.vect ...<br>
Finding nearest feature..<br>
Finding nearest areas...<br>
Update vector attributes...<br>
2837 categories - no nearest feature found<br>
23679 categories read from the map<br>
23679 categories exist in the table<br>
23679 categories read from the map exist in the table<br>
v.distance complete. 23679 records updated.<br>
<br>
20842 points have got the attribute.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Andres Kuusk<br>
Tartu Observatory, Estonia<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" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</font></span></blockquote></div><br></div></div>