Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Import system modules
- import arcpy
- import os
- arcpy.env.workspace = Working
- arcpy.env.overwriteOutput = True
- # Script arguments
- Input_Table = arcpy.GetParameterAsText(0)
- Output_Workspace = arcpy.GetParameterAsText(1)
- # Local variables:
- XY_Event_Layer = Input_Table
- X Cord = "Longitude"
- Y_Cord = "Latitude"
- spRef = arcpy.SpatialReference(4326)
- Output_Workspace = "New_Feature_Class.shp"
- # Process: Make XY Event Layer
- arcpy.MakeXYEventLayer_management(Input_Table, "Longitude", "Latitude", XY_Event_Layer, spRef)
- # Process: Feature Class to Feature Class
- arcpy.CopyFeatures_management(XY_Event_Layer, Longitude_and_Latitude_Points, "", "0", "0", "0")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement