Any reason you're not going directly from the .csv file to a layer when using arcpy.MakeXYEventLayer_management ?Simply use the MakeXYEventLayer tool to create a layer from the .csv file and then export the layer to your FGDB.
import arcpy arcpy.MakeXYEventLayer_management("xyEvent.txt", "X_FIELD", "Y_FIELD", "XYlayer") arcpy.CopyFeatures_management("XYlayer", "XY.gdb/POIs")
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.