I have a .dbf file and want to change it to a .shp file with its LAT/LON.
ArcPy Code,
import arcpy
arcpy.env.overwriteOutput=True
dbffile = "GIS_counts.dbf"
spref = arcpy.SpatialReference(4326) #gcs_wgs_1984
arcpy.MakeXYEventLayer_management (dbffile, "LONGITUD", "LATITUDE", "test.shp", spref)
Error:
ERROR 000223: Cannot extract event table properties
Failed to execute (MakeXYEventLayer).