python and arcgis 10.1

17
PYTHON AND ARCGIS 10.1

Upload: wv-assocation-of-geospatial-professionals

Post on 06-May-2015

635 views

Category:

Technology


5 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Python and ArcGIS 10.1

PYTHON AND ARCGIS 10.1

Page 2: 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

Page 3: Python and ArcGIS 10.1

Python in ArcGIS = Arcpy Used to automate geoprocessing and

map creation Easily share tools Expand native tools

Page 4: Python and ArcGIS 10.1

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

Page 5: Python and ArcGIS 10.1

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

Page 7: Python and ArcGIS 10.1

Map

Page 8: Python and ArcGIS 10.1

Text

Page 9: Python and ArcGIS 10.1

Textbox

Page 10: Python and ArcGIS 10.1

expression

Page 11: Python and ArcGIS 10.1

code

Page 12: Python and ArcGIS 10.1

IDLE

Page 13: Python and ArcGIS 10.1

NotePad ++

Page 14: Python and ArcGIS 10.1

PyScripter

Page 15: Python and ArcGIS 10.1

PythonWin

Page 16: Python and ArcGIS 10.1

Python Window

Page 17: Python and ArcGIS 10.1