<HTML>
<HEAD>
<TITLE>Re: [GRASS-user] Vector proximity Tools.</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>V.distance may be what you need.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>&quot;Sampson, David&quot; &lt;dsampson@NRCan.gc.ca&gt;<BR>
<B>Date: </B>Fri, 1 Sep 2006 15:28:42 -0400<BR>
<B>To: </B>&lt;grassuser@grass.itc.it&gt;<BR>
<B>Subject: </B>[GRASS-user] Vector proximity Tools.<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Arial">Hey Folks,</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Arial">I come back with more questions for &quot;addressing&quot; and geo locations issues&#8230; <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">Looking for a tool that can take a vector file (road segment network) and point data (FSA Centroids) to relate a road segment with the closest FSA(s). FSA's are the first three letters of a Canadian Postal Code<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">SI there a tool in GRASS to check this proximity with VECTOR? &nbsp;Or do we have to convert to raster and then back to vector?<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">Here is the background</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Arial">1. using PAGC as a program that can do addressing based on blok face road segments and address ranges (<FONT COLOR="#0000FF"><U><a href="http://www.pagcgeo.org/">http://www.pagcgeo.org/</a></U></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"> <a href="http://www.pagcgeo.org/">&lt;http://www.pagcgeo.org/&gt;</a> </FONT><FONT FACE="Arial">)<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">2. Using the freely availbe road network file from Stats Canada &nbsp;(<FONT COLOR="#0000FF"><U><a href="http://www.statcan.ca/english/freepub/92-500-GIE/2005001/how.htm">http://www.statcan.ca/english/freepub/92-500-GIE/2005001/how.htm</a></U></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"> <a href="http://www.statcan.ca/english/freepub/92-500-GIE/2005001/how.htm">&lt;http://www.statcan.ca/english/freepub/92-500-GIE/2005001/how.htm&gt;</a> </FONT><FONT FACE="Arial">)<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">3. Since postal code position data is not freely available in Canada you can only realy work with the first three characters (for free at least), or the Forward Sorting Address (FSA)<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">4. The FSA list can be found in various places, I like the one on Wikipedia, although a full QC has not been done (<FONT COLOR="#0000FF"><U><a href="http://en.wikipedia.org/wiki/List_of_K_Postal_Codes_of_Canada">http://en.wikipedia.org/wiki/List_of_K_Postal_Codes_of_Canada</a></U></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"> <a href="http://en.wikipedia.org/wiki/List_of_K_Postal_Codes_of_Canada">&lt;http://en.wikipedia.org/wiki/List_of_K_Postal_Codes_of_Canada&gt;</a> </FONT><FONT FACE="Arial">)<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">5. Geoconnections has a gazateer service that will give out a centroid based on the FSA (one at a time of course) &nbsp;<FONT COLOR="#0000FF"><U><a href="http://www.geoconnections.org/CGDI.cfm/fuseaction/developersCorner.details/id/4517/gcs.cfm">http://www.geoconnections.org/CGDI.cfm/fuseaction/developersCorner.details/id/4517/gcs.cfm</a></U></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"> <a href="http://www.geoconnections.org/CGDI.cfm/fuseaction/developersCorner.details/id/4517/gcs.cfm">&lt;http://www.geoconnections.org/CGDI.cfm/fuseaction/developersCorner.details/id/4517/gcs.cfm&gt;</a> <BR>
<BR>
</FONT><FONT FACE="Arial">The problem is that in the road files there may be more than one MAIN STREET. So I&#8217;d like another criteria to match against&#8230; in the states the tiger data is good for zip codes&#8230; but postal codes in canada, well, cost a lot. &nbsp;So I'm thinking of the following rationelle<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">First, I need to create a FSA centroids shape file (that will later be freely distributed) by running a list of FSA's for a province through the gazateer.<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">Then here is where I think GRASS might be able to come in.</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Arial">Match each roadsegment to the closest FSA centroid(s). Maybe the top three. Have this info dumped to the table. Export the new road file as a shp file and use this as reference data for PAGC. This would at least help narrow down the choices as it is unlikely to have two MAIN STREETS in one postal code.<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT><FONT FACE="Arial">This is just an idea&#8230; so any input or LIKE experience would be welcome info</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Arial">Cheers</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT></SPAN>
</BODY>
</HTML>