<?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: Python Performance Vs Model or Manually in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430917#M33857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you try this? Also in the script add a Coordinate Reference system when creating points based on the points you have in your text file. I am assuming that its in WGS84?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;## create Ca_Points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput= True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "c:\\geolinc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Make XY Event Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeXYEventLayer_management("master_ca.txt", "X_COORD", "Y_COORD", "ca_points", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Copy Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CopyFeatures_management("ca_points", "capoints_output.shp")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 19:21:07 GMT</pubDate>
    <dc:creator>SachinKanaujia</dc:creator>
    <dc:date>2013-11-26T19:21:07Z</dc:date>
    <item>
      <title>Python Performance Vs Model or Manually</title>
      <link>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430914#M33854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; I'm new to ARCGIS and Python and I've written several python scripts to automate some of the regular nightly data extraction.&amp;nbsp;&amp;nbsp;&amp;nbsp; This very simply script takes 2-3 hours to run when I can manually accomplish the same task in 2-3 minutes or in a model I built in 12 minutes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am simply trying to open a text file and save it as a Shape file.&amp;nbsp; the text file has Civic Address coordinates in it.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I created a model and it ran in 12 minutes so I exported it to a python script so I could schedule the task.&amp;nbsp;&amp;nbsp;&amp;nbsp; It now takes 2-3 hours to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code.&amp;nbsp;&amp;nbsp; any ideas why it is taking this long.&amp;nbsp;&amp;nbsp; I compared it in a 32 bit and 64 bit environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;##&amp;nbsp;&amp;nbsp; create Ca_Points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput= True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "c:\\geolinc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "n:\\tel_update"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeXYEventLayer_management("master_ca.txt", "X_COORD", "Y_COORD", "ca_points","",)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FeatureClassToShapefile_conversion(["ca_points"], "c:\\geolinc")[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 13:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430914#M33854</guid>
      <dc:creator>TerryScott</dc:creator>
      <dc:date>2013-11-26T13:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python Performance Vs Model or Manually</title>
      <link>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430915#M33855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is N: drive? Is it a local drive or a mapped network location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "n:\\tel_update"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to understand the complete scenario? How many records are there is your text file and you were able to run the complete process including conversion to shapefile manually in couple of seconds?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 14:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430915#M33855</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2013-11-26T14:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python Performance Vs Model or Manually</title>
      <link>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430916#M33856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There is 71,000 records with about 25 fields.&amp;nbsp;&amp;nbsp;&amp;nbsp; Not a huge dataset by any means.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;N:\tel_update is a network path to the file.&amp;nbsp;&amp;nbsp; I've tried it locally with not much of a difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run the complete scenario in ARCMAP manually it takes about a minute.&amp;nbsp;&amp;nbsp; I'm just importing X/Y data then exporting it as a shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 14:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430916#M33856</guid>
      <dc:creator>TerryScott</dc:creator>
      <dc:date>2013-11-26T14:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python Performance Vs Model or Manually</title>
      <link>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430917#M33857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you try this? Also in the script add a Coordinate Reference system when creating points based on the points you have in your text file. I am assuming that its in WGS84?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;## create Ca_Points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput= True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "c:\\geolinc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Make XY Event Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeXYEventLayer_management("master_ca.txt", "X_COORD", "Y_COORD", "ca_points", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Copy Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CopyFeatures_management("ca_points", "capoints_output.shp")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430917#M33857</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2013-11-26T19:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python Performance Vs Model or Manually</title>
      <link>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430918#M33858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 17:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-performance-vs-model-or-manually/m-p/430918#M33858</guid>
      <dc:creator>BillRose</dc:creator>
      <dc:date>2015-01-12T17:45:04Z</dc:date>
    </item>
  </channel>
</rss>

