<?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: Auto connect points with a line? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719210#M40730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work.&amp;nbsp; The merged layer can just be intermediate data.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen1.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193923_Screen1.PNG" style="width: 620px; height: 211px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 15:10:48 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2016-04-05T15:10:48Z</dc:date>
    <item>
      <title>Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719204#M40724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help to find out the best way to draw a line between points from different layers to show how the points have moved and save the line in a new layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer 1 - points that shows the positions hour 1.&lt;/P&gt;&lt;P&gt;Layer 2 - same points that shows the positions hour 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The points keep their ID in the attribute table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need a quick way to generate the lines as the data changes (eg. new layers are created)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719204#M40724</guid>
      <dc:creator>DanielNilsson1</dc:creator>
      <dc:date>2016-04-05T14:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719205#M40725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/points-to-line.htm"&gt;Points to Line&lt;/A&gt; tool. This may provide the solution you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719205#M40725</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-04-05T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719206#M40726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The points are in different layers and the output should be a layer with lines (keeping the ID as an identifier for the line). I can´t see how to use two layers as inputs in Points to Line tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719206#M40726</guid>
      <dc:creator>DanielNilsson1</dc:creator>
      <dc:date>2016-04-05T14:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719207#M40727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you merge the two layers together and then execute the tool using the ID field?&amp;nbsp; You can easily create a model that could automate this procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719207#M40727</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-04-05T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719208#M40728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="resulting_line.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193843_resulting_line.png" style="width: 620px; height: 417px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719208#M40728</guid>
      <dc:creator>DanielNilsson1</dc:creator>
      <dc:date>2016-04-05T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719209#M40729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prefer to keep the existing layers (shape files) and only get the "line file". If I merge the data I need to create an identifier that tells the "time".&lt;/P&gt;&lt;P&gt;I´ll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 15:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719209#M40729</guid>
      <dc:creator>DanielNilsson1</dc:creator>
      <dc:date>2016-04-05T15:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719210#M40730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work.&amp;nbsp; The merged layer can just be intermediate data.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen1.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193923_Screen1.PNG" style="width: 620px; height: 211px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 15:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719210#M40730</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-04-05T15:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719211#M40731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're dead set against creating an intermediate feature class, you can do so using Python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; points1 = 'Layer1' # input layer 1
... points2 = 'Layer2' # input layer 2
... sr = arcpy.Describe(points1).spatialReference # CRS of layer 1
... lines = [] # temp line list
... dict1 = {row[1]:row[0].centroid for row in arcpy.da.SearchCursor(points1,['SHAPE@','NAME'],spatial_reference=sr)} # load layer 1 to dictionary
... dict2 = {row[1]:row[0].centroid for row in arcpy.da.SearchCursor(points2,['SHAPE@','NAME'],spatial_reference=sr)} # load layer 2 to dictionary
... for k1,v1 in dict1.iteritems(): # loop dictionary 1
...&amp;nbsp;&amp;nbsp;&amp;nbsp; if k1 in dict2: # see if key exists in dictionary 2
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_line = arcpy.Polyline(arcpy.Array([v1,dict2[k1]]),sr) # create line
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines.append(new_line) # add to line list
... arcpy.CopyFeatures_management(lines,r'in_memory\lines') # write lines to feature class&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719211#M40731</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-12T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect points with a line?</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719212#M40732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jake and Darren.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had some problems that I did not understand at first. Got out bounds and som errors. The - cause - Point ZM. Used ET Wizards to save the data as regular points insted and the problems were gone.&lt;/P&gt;&lt;P&gt;(could the point ZM to point be done in the model with a ArcGIS Basic licens?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Python script will have to wait - one step at a time.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-connect-points-with-a-line/m-p/719212#M40732</guid>
      <dc:creator>DanielNilsson1</dc:creator>
      <dc:date>2016-04-07T20:58:54Z</dc:date>
    </item>
  </channel>
</rss>

