Automating Processes with ArcPy Automating Processes with ArcPy to do work so I don’t have to to do work so I don’t have to Joe Guzi GIS Systems Analyst Stark County GIS Department 2015 Ohio GIS Conference September 21 - 23, 2015 | Hyatt Regency Columbus| Columbus, Ohio
33
Embed
Automating Processes with ArcPy to do work so I don’t have to Joe Guzi GIS Systems Analyst Stark County GIS Department 2015 Ohio GIS Conference September.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Automating Processes with ArcPy Automating Processes with ArcPy to do work so I don’t have toto do work so I don’t have to
Python Tips and Tricks: Comment Comment Comment• Comment everything• If you change your code
comment the change• You never know when you
will have to come back to your code and commenting will be the best way to remember why you did something
• Also commenting is good back up in case something happened to the author (God forbid)
Python Tips and Tricks: Comment Comment Comment
Python Tips and Tricks: Use the print Command
Python Tips and Tricks: Error blocks
Python Tips and Tricks: Email Notification
Python Tips and Tricks: Create logs
Python Tips and Tricks: Time• Time Libraries:
▫ Time▫ Datetime
• Time.gmtime• datetime.datetime.utcnow
()• datetime.timedelta(minute
s = 15)• str(DayAgo)[0:19]• "( LAST_EDITED_DATE
>= '" + DayAgoFormat + "' )"
Python Tips and Tricks: Use Resources•Python Window in ArcGIS desktop•ArcGIS Resources Python Section•Geoprocessing Tool References•GitHub•Friends•Python Documentation Site