<?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: Issue Creating Points from Tuple List in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/issue-creating-points-from-tuple-list/m-p/1166670#M64372</link>
    <description>&lt;P&gt;on the 4th line you have a double ]]&lt;/P&gt;&lt;P&gt;and then a bunch of singleton locations.&amp;nbsp; Remove one of the ] from that line and put it at the end of your point list&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 16:05:23 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-04-21T16:05:23Z</dc:date>
    <item>
      <title>Issue Creating Points from Tuple List</title>
      <link>https://community.esri.com/t5/python-questions/issue-creating-points-from-tuple-list/m-p/1166643#M64370</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;_Maybe I'm too new to this but with a list of tuples, I should be able to create points. They are being created but it creates an incorrect location. The first image shows the first 25 tuple coordinates and a each item being read to show its type.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="0d8664f2-ff89-4b6a-9087-2b7d9350c9c9.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39543i1EFFC7577E7371FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="0d8664f2-ff89-4b6a-9087-2b7d9350c9c9.jpg" alt="0d8664f2-ff89-4b6a-9087-2b7d9350c9c9.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the code at the moment:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.AddMessage( topLine_Tuple[:25])&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;for i in topLine_Tuple[:25]:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;arcpy.AddMessage(type(i))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;arcpy.AddMessage(i)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;# Creates an Empty Feature Class&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;topline_FC = arcpy.CreateFeatureclass_management(dataset_Dir, "topline0", "POINT")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Cursor&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;with arcpy.da.InsertCursor(topline_FC, ['SHAPE@XY']) as insert_cursor:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;for pnt in topLine_Tuple:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;insert_cursor.insertRow([pnt])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...So it does create the points but all in the same coordinate (see next image). I'd figure that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the tuple list is incorrect, maybe an array&lt;/LI&gt;&lt;LI&gt;the spatial reference is incorrect, it should be returning the feature class as NAD27 (spatial_reference=4267) or whichever&lt;OL&gt;&lt;LI&gt;Its initialing an UTM projection (most likely)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;EM&gt;I dunno,&lt;/EM&gt; since it should be returning different coordinates&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot20220421-1913.jpg" style="width: 353px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39544iBBCC7D8C8447CADC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot20220421-1913.jpg" alt="Screenshot20220421-1913.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;by the way, all the points created result in the same long, lat (even though they are different in the tuple)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 15:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issue-creating-points-from-tuple-list/m-p/1166643#M64370</guid>
      <dc:creator>JMarcel192</dc:creator>
      <dc:date>2022-04-21T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Creating Points from Tuple List</title>
      <link>https://community.esri.com/t5/python-questions/issue-creating-points-from-tuple-list/m-p/1166670#M64372</link>
      <description>&lt;P&gt;on the 4th line you have a double ]]&lt;/P&gt;&lt;P&gt;and then a bunch of singleton locations.&amp;nbsp; Remove one of the ] from that line and put it at the end of your point list&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 16:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issue-creating-points-from-tuple-list/m-p/1166670#M64372</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-04-21T16:05:23Z</dc:date>
    </item>
  </channel>
</rss>

