Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #Import system modules
  2. import arcpy
  3.  
  4. import os
  5.  
  6. arcpy.env.workspace = Working
  7.  
  8. arcpy.env.overwriteOutput = True
  9.  
  10. # Script arguments
  11. Input_Table = arcpy.GetParameterAsText(0)
  12.  
  13. Output_Workspace = arcpy.GetParameterAsText(1)
  14.  
  15. # Local variables:
  16. XY_Event_Layer = Input_Table
  17.  
  18. X Cord = "Longitude"
  19.  
  20. Y_Cord = "Latitude"
  21.  
  22. spRef = arcpy.SpatialReference(4326)
  23.  
  24. Output_Workspace = "New_Feature_Class.shp"
  25.  
  26. # Process: Make XY Event Layer
  27. arcpy.MakeXYEventLayer_management(Input_Table, "Longitude", "Latitude", XY_Event_Layer, spRef)
  28.  
  29. # Process: Feature Class to Feature Class
  30. arcpy.CopyFeatures_management(XY_Event_Layer, Longitude_and_Latitude_Points, "", "0", "0", "0")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement