Python and ArcGIS 10.1
-
Upload
wv-assocation-of-geospatial-professionals -
Category
Technology
-
view
621 -
download
5
description
Transcript of Python and ArcGIS 10.1
PYTHON AND ARCGIS 10.1
What is Python Open source scripting/programming language Not compiled, uses interpreter
Slower performanceFaster development
Executes independentlyor inside ArcGISCan be run as scheduled
task or batch jobCan be packaged as ArcTool, Add-in, ToolboxModular language, available functionality depends
on loaded libraries
Python in ArcGIS = Arcpy Used to automate geoprocessing and
map creation Easily share tools Expand native tools
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
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
Online training
Hitchhiker’s Guide to Python and ArcGISDavid Wynne and Jason Pardyhttp://proceedings.esri.com/library/userconf/devsummit11/papers/tech/hitchhikers_guide_to_python_and_arcgis.pdf
Python Scripting Ihttp://funnel.sfsu.edu/students/parkere/Courses/Students/Shirin%20Leclere/Fall2012%20Classes/GIS112_SL/lectures/Python_scripting_I.ppt
Learning to Programhttp://www.freenetpages.co.uk/hp/alan.gauld/tutcont.htm
Map
Text
Textbox
expression
code
IDLE
NotePad ++
PyScripter
PythonWin
Python Window