Python and ArcGIS 10.1

Post on 06-May-2015

621 views 5 download

description

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

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

Map

Text

Textbox

expression

code

IDLE

NotePad ++

PyScripter

PythonWin

Python Window