ArcGIS Python入门指南
Gettingg Started With Pyython In ArcGIS
DaleDale HoneycuttHoneycutt
David Wynne
AgendaAgendaAgendaAgenda
•• 8:308:30 –– 9:30: Python 101 and9:30: Python 101 and AArcPyrcPy 101101
–– Essentials of the languageEssentials of the language
–– UUUUsinsingggg ArcPArcPyyyy to executeto execute ggggeoeopppprocessinrocessingggg tools tools
–– Python windowPython window
•• 9:309:30–– 10:00: Script and Script tool basics10:00: Script and Script tool basics
–– CCCCreating a standalone scriptreating a standalone script
–– Creating a script toolCreating a script tool
•• 10:0010:00–– 10:15: Ma10:15: Mapppp automation automation
•• 10:1510:15 ––10:45: Break10:45: Break
•• 10:4510:45–– 11:00: Raster analysis and Map Algebra11:00: Raster analysis and Map Algebra
•• 11:0011:00–– 11:45: Tool Design and Validation11:45: Tool Design and Validation
PPyyyython 101thon 101
WhyWhyWhyWhy Python?Python?Python?Python?
•• ESRI has embraced Python forESRI has embraced Python for AArcGISrcGIS 1010
•• Python is the language that fulfills the needs of our userPython is the language that fulfills the needs of our user
communitycommunitycommunitycommunity
–– Easy to learnEasy to learn
–– Excellent for beginners and expertsExcellent for beginners and experts
–– SSSSuuititititaablblblblee fffforor llllarge proarge projjjjecectttts or smas or smallllllll scr scriiiippttttss
–– CrossCross--platformplatform
PythonPythonPythonPython 101101101101
•• Clear, easy to read syntaxClear, easy to read syntax
•• Easy to use, makes it simple to get startedEasy to use, makes it simple to get started
•••• VarietyVarietyVarietyVariety ofofofof basicbasicbasicbasic datadatadatadata typestypestypestypes
–– Including lists and dictionariesIncluding lists and dictionaries
•• Comes with a large standard libraryComes with a large standard library
•• Supports raising and catching exceptionsSupports raising and catchi