<?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: creating a shapefile from a multipart text file in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13957#M442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merging the files doesn't give me an answer to my question, "How do I import a multipart coordinate file into a shapefile."&amp;nbsp; It only makes a bigger multipart file.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 14:30:23 GMT</pubDate>
    <dc:creator>brantleyallen</dc:creator>
    <dc:date>2018-08-23T14:30:23Z</dc:date>
    <item>
      <title>creating a shapefile from a multipart text file</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13955#M440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Hi.&amp;nbsp; I'm in a college class and I have a project to read several multi-part coordinate files and create shapefiles from them.&lt;BR /&gt;The file format I am given is below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;I'm hung up on a few parts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;1: I can't bring the part name into a shapefile. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;2. I am unable to use the existing spatial reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;If I take a set single set of coordinates and save them into a file I can make a shapefile with the following code, but under no circumstance can I work on the file as it has been provided.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Brantley&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Single part conversion.&amp;nbsp; working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.InsertCursor(fc, ["SHAPE@"])&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = arcpy.Point()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for line in fileinput.input(infile1):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.ID, point.X, point.Y = line.split()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(point)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.Polygon(array)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow([polygon])&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileinput.close()&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;provided multipart text file.&amp;nbsp; unable to convert/import to a shapefile. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Work Completed on: 7_8_2014&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Spatial Reference: 43006&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Name: W_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;488597.653655, 4134910.76248&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;488813.848952, 4134609.01192&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;488904.303214, 4134480.54842&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;488938.462756, 4134422.3471&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Name: E_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;496198.193041, 4134565.19994&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;496312.413827, 4134568.14182&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;496433.652036, 4134568.08923&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;496559.933558, 4134547.91561&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;496782.196397, 4134527.70636&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;496923.636101, 4134512.56252&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Name: S_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494434.480367, 4134742.03574&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494610.098577, 4134679.72895&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494726.29001, 4134689.71507&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494872.793327, 4134704.71426&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494963.626594, 4134548.72468&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;Name: N_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494995.829828, 4135127.64541&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494978.929114, 4135325.68215&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;494974.480425, 4135410.81948&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;495046.57052, 4135567.60122&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;495127.628495, 4135675.08887&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;495222.19606, 4135804.97093&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;495307.786759, 4135979.66167&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 05:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13955#M440</guid>
      <dc:creator>brantleyallen</dc:creator>
      <dc:date>2018-08-23T05:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: creating a shapefile from a multipart text file</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13956#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you just merge the txt files beforehand&amp;nbsp;or merge the resulting point layers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13956#M441</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2018-08-23T09:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: creating a shapefile from a multipart text file</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13957#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merging the files doesn't give me an answer to my question, "How do I import a multipart coordinate file into a shapefile."&amp;nbsp; It only makes a bigger multipart file.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 14:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-a-shapefile-from-a-multipart-text-file/m-p/13957#M442</guid>
      <dc:creator>brantleyallen</dc:creator>
      <dc:date>2018-08-23T14:30:23Z</dc:date>
    </item>
  </channel>
</rss>

