<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 9, 2014 at 8:13 PM, David Montoya <span dir="ltr"><<a href="mailto:jdmonto0@gmail.com" target="_blank">jdmonto0@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi, I have a question. I need to generate a table that says which polygons bordering to each one, for example:<div>
<br></div><div>
<table style="border-collapse:collapse;width:130pt" border="0" cellpadding="0" cellspacing="0" width="130">
<colgroup><col style="width:65pt" span="2" width="65">
</colgroup><tbody><tr style="height:14pt" height="14">
<td style="height:14pt;width:65pt" height="14" width="65"> ID1</td>
<td style="border-left-style:none;width:65pt" width="65"> ID2</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">1</td>
<td align="right">3</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">1</td>
<td align="right">2</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">2</td>
<td align="right">1</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">2</td>
<td align="right">4</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">3</td>
<td align="right">1</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">3</td>
<td align="right">4</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">3</td>
<td align="right">5</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">4</td>
<td align="right">2</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">4</td>
<td align="right">3</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">4</td>
<td align="right">6</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">5</td>
<td align="right">3</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">5</td>
<td align="right">6</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">6</td>
<td align="right">4</td>
</tr>
<tr style="height:14pt" height="14">
<td style="height:14pt" align="right" height="14">6</td>
<td align="right">5</td>
</tr>
</tbody></table><br></div><div>In this case the polygon 1 borders with the polygons 3 and 2, and so on. How can I do that in Grass?</div><div><br></div></div></blockquote><div><br></div><div>The module v.to.db offers a "sides" option, perhaps that's useful here.<br>
<br></div><div>For an (un)related example, see<br><a href="http://grasswiki.osgeo.org/wiki/Vector_length_of_common_boundaries">http://grasswiki.osgeo.org/wiki/Vector_length_of_common_boundaries</a><br><br></div><div>Rather the length you could then just retrieve the IDs.<br>
<br></div><div>Hope this points you into the right direction,<br><br>Markus<br></div></div></div></div>