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")
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.