#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)
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.