Hi I'm new to ARCGIS and Python and I've written several python scripts to automate some of the regular nightly data extraction. 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.
I am simply trying to open a text file and save it as a Shape file. the text file has Civic Address coordinates in it. I created a model and it ran in 12 minutes so I exported it to a python script so I could schedule the task. It now takes 2-3 hours to run.
Here's the code. any ideas why it is taking this long. I compared it in a 32 bit and 64 bit environment.
I am simply trying to open a text file and save it as a Shape file. the text file has Civic Address coordinates in it. I created a model and it ran in 12 minutes so I exported it to a python script so I could schedule the task. It now takes 2-3 hours to run.
Here's the code. any ideas why it is taking this long. I compared it in a 32 bit and 64 bit environment.
import arcpy
from arcpy import env
## create Ca_Points.
arcpy.env.overwriteOutput= True
env.workspace = "c:\\geolinc"
env.workspace = "n:\\tel_update"
arcpy.MakeXYEventLayer_management("master_ca.txt", "X_COORD", "Y_COORD", "ca_points","",)
arcpy.FeatureClassToShapefile_conversion(["ca_points"], "c:\\geolinc")
from arcpy import env
## create Ca_Points.
arcpy.env.overwriteOutput= True
env.workspace = "c:\\geolinc"
env.workspace = "n:\\tel_update"
arcpy.MakeXYEventLayer_management("master_ca.txt", "X_COORD", "Y_COORD", "ca_points","",)
arcpy.FeatureClassToShapefile_conversion(["ca_points"], "c:\\geolinc")