Hello GRASS list,
I'm running v.distance because I'd like to assign the nearest area ID to a points vector. Some of the points are outside any areas.
I'm using this command:
v.distance from=points to=areas upload=to_attr column=c to_column=ID output=connections
And I'd like to see a new column "C" in the points table that contains the ID from the nearest area in areas.
If I plot points, areas, and connections, it appears that every point is connected to an area. But if I `db.select points|head`, many rows in the ID column are empty. I would not expect any to be empty. Can someone explain what I might be doing wrong?
Thank you,
-k.
Ah nevermind - I thought that all of the areas had values in the ID column, but that was incorrect, which is why the points vector was not fully populated.
Thanks for helping me debug this.
-k.
On 2022-05-20 at 21:27 -07, Ken Mankoff <mankoff@gmail.com> wrote:
Hello GRASS list,
I'm running v.distance because I'd like to assign the nearest area ID
to a points vector. Some of the points are outside any areas.
I'm using this command:
v.distance from=points to=areas upload=to_attr column=c to_column=ID
output=connections
And I'd like to see a new column "C" in the points table that contains
the ID from the nearest area in areas.
If I plot points, areas, and connections, it appears that every point
is connected to an area. But if I `db.select points|head`, many rows
in the ID column are empty. I would not expect any to be empty. Can
someone explain what I might be doing wrong?
Thank you,
-k.