<?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 dbf in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421995#M33161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the arcpy module for Arc 10 you can use the following two functions to convert a text file back to a shapefile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
#Variable that is assigned an input folder location
workspace = 'C:/folderPath'

#Variable that is assigned a string name. This will be what your exported shapefile will be called.
newLayer = 'layerName'

#Create the new Event Layer. The arguments 'x','y' and 'z' are the header names associated with your lat,lon and elevation respectively
arcpy.MakeXYEventLayer_management('textFile.csv', 'x', 'y', newLayer, '', 'z')

# Process: Feature Class To Shapefile (multiple)
arcpy.FeatureClassToShapefile_conversion('layerName', workspace)

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:27:21 GMT</pubDate>
    <dc:creator>Jasonvan_Warmerdam</dc:creator>
    <dc:date>2021-12-12T16:27:21Z</dc:date>
    <item>
      <title>Creating dbf in Python</title>
      <link>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421992#M33158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I currently have a python script that I'm using in the middle of a model which performs matrix algebra from an output of my model (a .txt file) and another .txt file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to use the resulting array of the matrix algebra in my model. The best way I can think of to do this would be to create a .dbf file that I would join to my original shapefile. Is there a way to accomplish this? I know I can create a text file from the array, but I can't seem to find a way to import this into my model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 02:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421992#M33158</guid>
      <dc:creator>MelissaTalley</dc:creator>
      <dc:date>2011-10-11T02:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dbf in Python</title>
      <link>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421993#M33159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A text file can be loaded as a table, you would need to have a valid header and it helps a lot if you also have a schema.ini file with an entry to define field types, otherwise they all default to char fields 255 wide.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 03:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421993#M33159</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2011-10-11T03:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dbf in Python</title>
      <link>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421994#M33160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! I will try this. I know how to create the table in Python, but what tool would I use to load the table from the text file in Model Builder?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 01:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421994#M33160</guid>
      <dc:creator>MelissaTalley</dc:creator>
      <dc:date>2011-10-12T01:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dbf in Python</title>
      <link>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421995#M33161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the arcpy module for Arc 10 you can use the following two functions to convert a text file back to a shapefile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
#Variable that is assigned an input folder location
workspace = 'C:/folderPath'

#Variable that is assigned a string name. This will be what your exported shapefile will be called.
newLayer = 'layerName'

#Create the new Event Layer. The arguments 'x','y' and 'z' are the header names associated with your lat,lon and elevation respectively
arcpy.MakeXYEventLayer_management('textFile.csv', 'x', 'y', newLayer, '', 'z')

# Process: Feature Class To Shapefile (multiple)
arcpy.FeatureClassToShapefile_conversion('layerName', workspace)

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-dbf-in-python/m-p/421995#M33161</guid>
      <dc:creator>Jasonvan_Warmerdam</dc:creator>
      <dc:date>2021-12-12T16:27:21Z</dc:date>
    </item>
  </channel>
</rss>

