<?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: geometry help w/ da.InsertCursor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672598#M52028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cool. share a final output when you can . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 22:13:47 GMT</pubDate>
    <dc:creator>DanielSmith</dc:creator>
    <dc:date>2014-12-29T22:13:47Z</dc:date>
    <item>
      <title>geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672584#M52014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Ok, I'm stumped!&amp;nbsp; I have a list "xys" that if I do this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xys.sort()&lt;/P&gt;&lt;P&gt;for i in xys:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I get this:&amp;nbsp; &lt;SPAN style="font-size: 13.63636302948px;"&gt;(id, xFrom, yFrom, xTo, yTo)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[225351, 1858897, 889223, 1883031, 882436]&lt;/P&gt;&lt;P&gt;[225396, 1908393, 871758, 1908090, 871791]&lt;/P&gt;&lt;P&gt;[225405, 1899127, 884235, 1885213, 861191]&lt;/P&gt;&lt;P&gt;[225423, 1891186, 878961, 1885811, 881262]&lt;/P&gt;&lt;P&gt;[225435, 1887101, 888042, 1894165, 884325]&lt;/P&gt;&lt;P&gt;[225438, 1888139, 885803, 1888050, 885319]&lt;/P&gt;&lt;P&gt;[225438, 1888139, 885803, 1888081, 884837]&lt;/P&gt;&lt;P&gt;[225441, 1885023, 888542, 1884356, 888364]&lt;/P&gt;&lt;P&gt;[225351, 1858897, 889223, 1883031, 882436]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and then i do this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for j in xys:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print j&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myList = []&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myList.append(arcpy.Point(j[1], j[2]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myList.append(arcpy.Point(j[3], j[4]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array(myList)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(array)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.InsertCursor(output, ("SHAPE@"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow((polyline,))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inserted row'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I get an empty table...&amp;nbsp; I had this working at one point.&amp;nbsp; Any obvious blunders here?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 18:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672584#M52014</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-29T18:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672585#M52015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;myList = [] is the list initialization supposed to be inside or outside your 'for' loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 18:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672585#M52015</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-29T18:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672586#M52016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;myList is supposed to be inside the for loop (I think!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myList contains 2 point objects that are passed to the polyline object, which is supposed to get inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...but it doesn't do what I want!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the myList stuff and do this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array = arcpy.Array([arcpy.Point(j[1], j[2]), arcpy.Point(j[3], j[4])])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the same results...&amp;nbsp; empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 18:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672586#M52016</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-29T18:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672587#M52017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is there a comma in the line that reads: &lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14.4444446563721px;"&gt; cursor.insertRow((polyline,))?&amp;nbsp; Also, shouldn't the field list and polygon array be lists?&amp;nbsp; So try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for j in xys:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print j

&amp;nbsp;&amp;nbsp;&amp;nbsp; myList = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; myList.append(arcpy.Point(j[1], j[2]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; myList.append(arcpy.Point(j[3], j[4]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array(myList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(array)
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.InsertCursor(output, ["SHAPE@"])
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow([polyline])
&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inserted row'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672587#M52017</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672588#M52018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I tried that, but still no cigar.&amp;nbsp; The code should work.&amp;nbsp; I'm stumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672588#M52018</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-29T19:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672589#M52019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then go back and make the code more like the InsertCursor help.&amp;nbsp; Also, never create an InsertCursor inside a loop without also deleting it inside the loop.&amp;nbsp; For this code and most code an InsertCursor should only be created once outside the loop and only the insertRow operations should be inside the loop.&amp;nbsp; Then be sure to delete the InsertCursor, since there is no other correct way to stop it and release its locks.&amp;nbsp; Failure to delete the cursor in your previous code may be the reason why the cursor never completes and refuses to show the records it created, since it still thinks it is waiting to create more records and you have opened many cursors on the same source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;cursor = arcpy.da.InsertCursor(output, ["SHAPE@"])

&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14.4444446563721px; line-height: 1.5;"&gt;for j in xys:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print j

&lt;SPAN style="font-size: 14.4444446563721px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array([&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14.4444446563721px;"&gt;arcpy.Point(j[1], j[2]), &lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14.4444446563721px;"&gt;arcpy.Point(j[3], j[4])]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.4444446563721px; line-height: 1.5;"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(array)
&lt;SPAN style="font-size: 14.4444446563721px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow([polyline])&lt;/SPAN&gt;
&lt;SPAN style="font-size: 14.4444446563721px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; del array&lt;/SPAN&gt;
&lt;SPAN style="font-size: 14.4444446563721px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; del polyline&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inserted row'

del cursor&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672589#M52019</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T04:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672590#M52020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard, that is definitely much cleaner, but it's still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the loop I've even printed the type(j[1]) etc, and they all are 'int', so I've verified that I'm not feeding it bad data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672590#M52020</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-29T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672591#M52021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The missing part of your code that most likely is part of the problem is that you have not shown what the output variable is assigned.&amp;nbsp; Maybe it is writing somewhere else than where you think it is writing, depending on the workspace settings, fc name, etc.&amp;nbsp; Since it is not throwing an error, it probably is a valid output, but I have wasted plenty of time checking what I thought I told my code to do when I actually told my code to do something different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672591#M52021</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-12-29T20:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672592#M52022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I run this code in ArcGIS 10.2.2, it runs just fine and creates the polylines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
fc = r"C:\Forum\DistLinePol\test.gdb\Polyline2"

xys = [[225351, 1858897, 889223, 1883031, 882436],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225396, 1908393, 871758, 1908090, 871791],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225405, 1899127, 884235, 1885213, 861191],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225423, 1891186, 878961, 1885811, 881262],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225435, 1887101, 888042, 1894165, 884325],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225438, 1888139, 885803, 1888050, 885319],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225438, 1888139, 885803, 1888081, 884837],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225441, 1885023, 888542, 1884356, 888364],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225351, 1858897, 889223, 1883031, 882436]]

with arcpy.da.InsertCursor(fc, ("SHAPE@")) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for j in xys:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(j[1], j[2]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(j[3], j[4]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(array)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow((polyline, ))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4811" target="_blank"&gt;Richard Fairhurst&lt;/A&gt;‌; there are many examples where the list of fields is handled as tuple and the comma in "(polyline, )" is to create the tuple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672592#M52022</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T04:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672593#M52023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The exact same code doesn't insert at 10.3!&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672593#M52023</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-29T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672594#M52024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;interesting, but annoying... If I look at the help of the da.InsertCursor at 10.3:&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/insertcursor-class.htm#C_GUID-DA74F0E0-2D67-472A-84B3-CB594A43750B" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/insertcursor-class.htm#C_GUID-DA74F0E0-2D67-472A-84B3-CB594A43750B" rel="nofollow noopener noreferrer" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/insertcursor-class.htm#C_GUID-DA74F0E0-2D67-472A-84B3-CB594A43750B&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... I see that they use (as &lt;A href="https://community.esri.com/migrated-users/4811" target="_blank"&gt;Richard Fairhurst&lt;/A&gt;‌ suggests) a list for the fields and insert the row as list. So maybe if you make some minor changes it will work in 10.3 (I can't verify this until next week):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
fc = r"C:\Forum\DistLinePol\test.gdb\Polyline2"

xys = [[225351, 1858897, 889223, 1883031, 882436],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225396, 1908393, 871758, 1908090, 871791],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225405, 1899127, 884235, 1885213, 861191],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225423, 1891186, 878961, 1885811, 881262],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225435, 1887101, 888042, 1894165, 884325],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225438, 1888139, 885803, 1888050, 885319],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225438, 1888139, 885803, 1888081, 884837],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225441, 1885023, 888542, 1884356, 888364],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [225351, 1858897, 889223, 1883031, 882436]]

with arcpy.da.InsertCursor(fc, ["SHAPE@"]) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for j in xys:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(j[1], j[2]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(j[3], j[4]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(array)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow([polyline])&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672594#M52024</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T04:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672595#M52025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;inserts worked for me at 10.3. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-12-29_12-24-39.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/45392_2014-12-29_12-24-39.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh in catalog maybe? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are the coordinates posted way out of bounds for the coordinate system?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672595#M52025</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2014-12-29T20:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672596#M52026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Daniel that the code Xander posted (using tuples or lists) works with Python 2.7.8 and ArcMap 10.3.&amp;nbsp; I get the same results he showed.&amp;nbsp; The coordinates work even with my default state plane coordinate system which is not really designed for this data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like a reboot is in order if it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672596#M52026</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-12-29T20:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672597#M52027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reinstalling now.&amp;nbsp; My upgrade must have gone wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone!&amp;nbsp; The application here's pretty cool.&amp;nbsp; This will be like a live spider diagram showing police officers converging on a call for assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 21:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672597#M52027</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-29T21:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672598#M52028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cool. share a final output when you can . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 22:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672598#M52028</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2014-12-29T22:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672599#M52029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, my police "calls for service" map is done with lines showing who's assigned to whatever call!&amp;nbsp; Thanks for your help everyone.&amp;nbsp; (this refreshes every 30 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rtcm.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/45596_rtcm.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 17:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672599#M52029</guid>
      <dc:creator>KevinBell</dc:creator>
      <dc:date>2014-12-30T17:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: geometry help w/ da.InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672600#M52030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool! Nice Work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 22:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geometry-help-w-da-insertcursor/m-p/672600#M52030</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-12-30T22:03:55Z</dc:date>
    </item>
  </channel>
</rss>

