Guest User

Untitled

a guest
Nov 13th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import arcpy
  2. import datetime
  3. import os
  4. arcpy.env.workspace = r"Database ConnectionsConnection to gisDB(edits).sde"
  5. print("env.workspace completed successfully")
  6. out_folder_path = "C:Users**Sonic GISReport"
  7. nowstart = datetime.datetime.now()
  8. YearMonthDay = nowstart.strftime("%Y_%m_%d")
  9. out_name = "Report_" + YearMonthDay + ".gdb"
  10. # Execute CreateFileGDB
  11. gdb = arcpy.CreateFileGDB_management("C:Users**GISReport", out_name)
  12. print("workspace created, exporting feature classes...")
  13. in_features = ["Poles.shp"]
  14. out_location = gdb
  15. arcpy.FeatureClassToGeodatabase_conversion(in_features, out_location)
Add Comment
Please, Sign In to add comment