<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Drawing lines from points to *only* the nearest points in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647604#M36664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is actually quite simple and definitely doable with my current skill set.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2013 23:36:12 GMT</pubDate>
    <dc:creator>JustinNawrocki</dc:creator>
    <dc:date>2013-05-23T23:36:12Z</dc:date>
    <item>
      <title>Drawing lines from points to *only* the nearest points</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647602#M36662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In ArcGIS 10 I have thousands of rail station points that are not connected to the road network, and I want them to be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can use snapping when I use Network Analyst, but for various reasons this not appropriate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have dabbled with near tables and spider diagrams but I can't seem to be able to get them to draw lines ONLY to the nearest points.&amp;nbsp; It can be done of course by drawing full spiders and then matching and deleting, but that takes a great deal of manual work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Googling has thus far not helped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I basically want is to automatically draw lines from the station points to the nearest three (or whatever, more than 1) points that I am designating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even better would be to draw lines to the nearest three lines on the road network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24402[/ATTACH] to [ATTACH=CONFIG]24403[/ATTACH] OR [ATTACH=CONFIG]24404[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way (scripting/combination of tools) that this can be done?&amp;nbsp; It seems like it should be simple but it is definitely not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 01:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647602#M36662</guid>
      <dc:creator>JustinNawrocki</dc:creator>
      <dc:date>2013-05-17T01:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines from points to *only* the nearest points</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647603#M36663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: pmcatnip&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dunno about connecting to the nearest streets but you can use Excel equations to automatically narrow down your spider diagrams/near tables to the nearest X number points.&amp;nbsp; To do this each line should have a unique ID, length (or distance if a near table), and the ID of the origin rail.&amp;nbsp; These should all already be there by default.&amp;nbsp; Copy/paste your attribute table into Excel.&amp;nbsp; Sort the data by two levels, first the origin rail ID then the length.&amp;nbsp; In new columns to the right there are several options as to equations to find the nearest three (or whatever).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm thinking along the lines of assigning each row a value for the nearness ranking.&amp;nbsp; The closest point would be 1, next point is 2, next point is 3 and so on.&amp;nbsp; Here is an example.&amp;nbsp; The equation in Column D checks if the origin ID is the same, then for each row associated with that origin gives it a rank according to the length.&amp;nbsp; Then repeats for the next origin ID.&amp;nbsp; The equation in Column E determines which rows to keep based on specifying however many you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24582[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now back in GIS, you can do a table join to add the Keep field to your data using OID as the link.&amp;nbsp; Select attributes with Keep = yes and export to a new layer.&amp;nbsp; (EDIT: Actually the Keep field is unnecessary if you join the Near_Rank field instead and Select Attributes for Near_Rank =&amp;lt; 3.&amp;nbsp; That may be more useful because you can change your mind at any time and export new layers with however many closest points you need.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is surely a way to script it in GIS using loops, or use IF statements in the field calculator, but in my opinion this is simpler.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 16:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647603#M36663</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-22T16:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines from points to *only* the nearest points</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647604#M36664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is actually quite simple and definitely doable with my current skill set.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 23:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647604#M36664</guid>
      <dc:creator>JustinNawrocki</dc:creator>
      <dc:date>2013-05-23T23:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines from points to *only* the nearest points</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647605#M36665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: pmcatnip&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to help!&amp;nbsp; If you don't mind, please click the check mark on the right side of the post to show that the question has been answered. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 21:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-from-points-to-only-the-nearest/m-p/647605#M36665</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-30T21:39:11Z</dc:date>
    </item>
  </channel>
</rss>

