#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)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.