Python and ArcGIS 10.1

1,289 views

Published on

Presented by Joseph Rathvon, Washington County MD Division of Public Works, at EPAN GIS Users Group Meeting in August 2013.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,289
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
81
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Python and ArcGIS 10.1

  1. 1. What is Python  Open source scripting/programming language  Not compiled, uses interpreter  Slower performance  Faster development  Executes independently or inside ArcGIS  Can be run as scheduled task or batch job  Can be packaged as ArcTool, Add-in, Toolbox  Modular language, available functionality depends on loaded libraries
  2. 2. Python in ArcGIS = Arcpy  Used to automate geoprocessing and map creation  Easily share tools  Expand native tools
  3. 3. How does Python work?  Write some code:  Where? ○ Integrated Python Window, IDE ○ Popular IDE: IDLE, PythonWin, PyScripter ○ Code Editor: Bluefish, ConTEXT, Notepad ++ ○ Model Builder* ○ Pre-written code – Arcpy café, other users, ect…  What? ○ Create and automate workflows ○ Extend tools to include logic ○ Write you own tools ○ Access other module to analyze your data ○ Python Toolbox
  4. 4. How does Python work…cont.  Run Code:  How? ○ Add script to a toolbox ○ Attach script to a custom toolbar button ○ Schedule using Windows Scheduler ○ Run from IDE ○ As a toolbox ○ Expand logic in custom labels
  5. 5. Online training  Hitchhiker’s Guide to Python and ArcGIS David Wynne and Jason Pardy http://proceedings.esri.com/library/userconf/de vsummit11/papers/tech/hitchhikers_guide_to_ python_and_arcgis.pdf  Python Scripting I http://funnel.sfsu.edu/students/parkere/Course s/Students/Shirin%20Leclere/Fall2012%20Cla sses/GIS112_SL/lectures/Python_scripting_I.p pt  Learning to Program http://www.freenetpages.co.uk/hp/alan.gauld/t utcont.htm
  6. 6. Map
  7. 7. Text
  8. 8. Textbox
  9. 9. expression
  10. 10. code
  11. 11. IDLE
  12. 12. NotePad ++
  13. 13. PyScripter
  14. 14. PythonWin
  15. 15. Python Window

×