<?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: Create a line from points using attributes in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240954#M8216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Xander,&lt;/P&gt;&lt;P&gt;could you give me an example how this should be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2017 14:17:15 GMT</pubDate>
    <dc:creator>TimGattinger1</dc:creator>
    <dc:date>2017-03-23T14:17:15Z</dc:date>
    <item>
      <title>Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240945#M8207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field in my point layer that contains values, for example, go something like the following: 1,1,1,1,1,1,3,3,3,3,2,2,2,2,3,3,3,3,3,1,1,1,1&lt;/P&gt;&lt;P&gt;I am looking to create separate line features for each set of unique values.&amp;nbsp; Using the example above, one line feature would be connecting the first 6 points that contain 1, the next line feature would contain the 4 points that contain 3, etc.&amp;nbsp; I initially tried using the Points to Line geoprocessing tool and populate this field in my point layer in the Line Field.&amp;nbsp; However my results looked like example 1 (See attached LineExample1.PNG).&amp;nbsp; I am looking for whenever there is a different value to a point, the lines do not join (see attached LineExample2.PNG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short, I am looking to do LineExample2 and not LineExample1.&amp;nbsp; Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240945#M8207</guid>
      <dc:creator>CraigPrisland1</dc:creator>
      <dc:date>2016-05-04T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240946#M8208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like the lines to be generated fall into a few categories, but there are many more lines than categories (i.e. multiple lines desired for each category), so just creating the lines by the category is tripping things up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, is there any way to identify before running &lt;EM&gt;Points to Line &lt;/EM&gt;which points are grouped together?&amp;nbsp; If there is, one could then add a new field to your data, then calculate a new unique ID for each point in an identified "line group", then run Points to Line using the new field for the &lt;EM&gt;Line Field&lt;/EM&gt; parameter so as to get the lines as you want.&amp;nbsp; You would still have the original values in your input points to Spatial Join to the lines if need be so one could get the original categories assigned.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 15:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240946#M8208</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-05-04T15:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240947#M8209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will work for you &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/cartography-toolbox/aggregate-points.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/cartography-toolbox/aggregate-points.htm"&gt;Aggregate Points—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 18:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240947#M8209</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-05-04T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240948#M8210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From figure 2, you have a multipart shape which, in your case, consists of two spatially separated lines sharing one record in the table.&amp;nbsp; How was this generated?&amp;nbsp; I have seen that when converting shapes to numpy arrays with the explode option.&amp;nbsp; In such cases it is possible to reassemble the shapes appropriately.&amp;nbsp; If you have no clue what I am talking about ... nevermind... an explanation probably wouldn't help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 18:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240948#M8210</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-04T18:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240949#M8211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use Point To line tool in (Data Management tool - Features), you can create continues line through same value in specific field, using "Line Field" option in that tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you make that, your line will be through long distance and you will have&amp;nbsp; (LineExample1) as your picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Solution for this problem that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should create other field for classify each group, to use that field in (Line Field ) option in Point To Line Tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Can I create new class for each group .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the answer:&lt;/P&gt;&lt;P&gt;You can Make that using Buffer tool.&lt;/P&gt;&lt;P&gt;Buffer Tool????&lt;/P&gt;&lt;P&gt;yes Buffer tool for your point feature class and make the buffer distance for ( maximum distance between closest point for each group not each class)&lt;/P&gt;&lt;P&gt;that will make a polygon contains a group of points for one Line .&lt;/P&gt;&lt;P&gt;You can do that if you make dissolve Buffer. using the field that has original classes for each group, and choose that field in Dissolve Field option in Buffer tool.&lt;/P&gt;&lt;P&gt;then you should explode feature using Multipart To Singlepart Tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to select each polygon and select points within that polygon and that points must have same class of polygon, because the polygon may be large to contain other class of points. After selection you should make Calculate Field with unique value .&lt;/P&gt;&lt;P&gt;You Can make that with Model builder and use iteration and make the unique value calculation in the number of iteration ( %n%).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After model finish, You can use Point To line tool, and&amp;nbsp; choose the new classes field that you calculated in model builder in&amp;nbsp; "Line Field" option .&lt;/P&gt;&lt;P&gt;and you will have the lines as (LineExample2) picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 11:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240949#M8211</guid>
      <dc:creator>AbdullahAnter</dc:creator>
      <dc:date>2016-05-05T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240950#M8212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I'm seeing, probably the easiest method would be to create a new field with the LineID and fill it like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/198339_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Pre-Logic&amp;nbsp; Script Code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;line_id = 1
prev_class = 1
def getLineID(val):
&amp;nbsp;&amp;nbsp;&amp;nbsp; global prev_class
&amp;nbsp;&amp;nbsp;&amp;nbsp; global line_id
&amp;nbsp;&amp;nbsp;&amp;nbsp; if val == prev_class:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return line_id
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line_id += 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prev_class = val
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return line_id&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of using the CLASS field to generate the lines:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/198340_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;You will have the LineID field with a unique value for each group of sequential CLASS values:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/198344_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Use the LineID field when executing the Point to Line tool in the Line Field option:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/198345_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Which will generate the lines correctly:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/198346_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240950#M8212</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T12:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240951#M8213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your suggestions.&amp;nbsp; They were all extremely useful.&amp;nbsp; I ended up using the latest post and then joined the output using the LineID's in both the point and line layers to get the CLASS field into the outputted line layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 14:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240951#M8213</guid>
      <dc:creator>CraigPrisland1</dc:creator>
      <dc:date>2016-05-05T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240952#M8214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello at all,&lt;/P&gt;&lt;P&gt;I have a script using start and&amp;nbsp; (S_X, S_Y) end points (E_X, E_Y) as coordinates from an excel table in order to create lines, it looks like the following:&lt;/P&gt;&lt;PRE class=""&gt;&lt;PRE class=""&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&amp;nbsp; in_rows &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;SearchCursor&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r&lt;/SPAN&gt;&lt;SPAN class=""&gt;"D:\Temp\Lines.xls\Sheet1$"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt; point &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Point&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;array &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Array&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt; featureList &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;[]&lt;/SPAN&gt;&lt;SPAN class=""&gt;cursor &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;InsertCursor&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r&lt;/SPAN&gt;&lt;SPAN class=""&gt;"D:\Temp\Lines.shp"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;feat &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; cursor&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;newRow&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;for&lt;/SPAN&gt;&lt;SPAN class=""&gt; in_row &lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt;&lt;SPAN class=""&gt; in_rows&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Set X and Y for start and end points&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;X &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; in_row&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;S_X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Y &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; in_row&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;S_Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;add&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;point&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;X &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; in_row&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;E_X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Y &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; in_row&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;E_Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;add&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;point&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Create a Polyline object based on the array of points&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Polyline&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;array&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Clear the array for future use&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;removeAll&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Append to the list of Polyline objects&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureList&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;polyline&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Insert the feature&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; feat&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;shape &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; polyline&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;insertRow&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;feat&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;del&lt;/SPAN&gt;&lt;SPAN class=""&gt; feat&lt;/SPAN&gt;&lt;SPAN class=""&gt;del&lt;/SPAN&gt;&lt;SPAN class=""&gt; cursor&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;It works well for my purpose, but I'd need to carry over information of another coloumn &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;(see excel table jpg, the LN coloumn), so that the&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;resulting lines have this information as a coloumn of the attribute table.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;Any ideas?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;IMG __jive_id="337361" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/337361_startendpointtable.jpg" style="width: 620px; height: 346px;" /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240952#M8214</guid>
      <dc:creator>TimGattinger1</dc:creator>
      <dc:date>2017-03-09T17:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240953#M8215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/1tiga11"&gt;1tiga11&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to create the output field first and write the result to the output feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice that you are using the arcpy.InsertCursor. If you have 10.1 or higher it is better to use the arcpy.da.InsertCursor instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 18:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240953#M8215</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-03-10T18:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240954#M8216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Xander,&lt;/P&gt;&lt;P&gt;could you give me an example how this should be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 14:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240954#M8216</guid>
      <dc:creator>TimGattinger1</dc:creator>
      <dc:date>2017-03-23T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240955#M8217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/126641"&gt;Tim Gattinger&lt;/A&gt;&amp;nbsp;, can you share a sample of your data? This will make it a lot easier to&amp;nbsp;show you what I mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2017 14:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240955#M8217</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-03-25T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a line from points using attributes</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240956#M8218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/126641"&gt;Tim Gattinger&lt;/A&gt;&amp;nbsp;, I have branched your post to a new question:&amp;nbsp;&lt;A href="https://community.esri.com/thread/192711"&gt;Create lines from points and cut rectangle with line and assign attributes&lt;/A&gt;&amp;nbsp;since the input format and required result are&amp;nbsp;different from the original questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 02:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-a-line-from-points-using-attributes/m-p/240956#M8218</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-03-31T02:43:20Z</dc:date>
    </item>
  </channel>
</rss>

