Hello!
I have 30 csv files with similar structure. I have used to import CSV files manually from Menu -> Map -> Add Data -> XY Point Data, where I choose the CSV file and press "Run."
(X Field and Y Field are recognized/filled automatically from CSV - latitude, longitude). Z field is left empty.
How can I do this in Python?
Here are some of my thoughts:
import arcpy
in_data = ["C:\data\"]
filter = "*.csv"
z_value = ""
arcpy.management.XYTableToPoint(in_data, filter,"longitude", "latitude",z_value,arcpy.SpatialReference(4759, 115700))
Throws an error - SyntaxError: EOL while scanning string literal (<string>, line 2)