Python - Introduction
Python - Introduction
ArcGIS
Python
• “Python is an easy to learn, powerful language… (with) high-level data structures and a
simple but effective approach to object-oriented programming. Python’s elegant syntax
and dynamic typing…make it an ideal language for scripting…in many areas and on most
platforms.” – python.org
[1] https://www.python.org
Why Learn Python?
Why Learn Python?
• Websites
- Python.org
- Beginner’s Guide
- Language Reference
- Learnpython.org
- Pluralsight.com
• Esri Training
- Free and Paid Courses
• Books
- Python Scripting for ArcGIS
- Learning Python, 5th Edition
Where is Python Used?
• Examples include:
- Data Analysis
- Entertainment
• Examples include:
- Web Applications
- Entertainment
• Examples include:
- Web Applications
- Data Analysis
Python Syntax
• Math Calculations
Introduction to • Variables
•
Python Syntax: •
Built-in Data Structures and their operations
Conditions
•
Demo •
Loops
Import libraries
Python Scripting
Executing Python Scripts
2015
• Python in Esri products
- Anaconda
2010
- ArcGIS Python API
2004
Python in Esri Conda embedded in Pro since 1.3
• Both Desktop and Pro have an embedded, interactive Python command line
• Access to Python and modules within ArcGIS applications
• Interact with maps and layers directly with Python code
ArcPy
1. Geoprocessing tools
2. Functions like ListFeatureClasses, Describe
3. Classes like Polygon, SpatialReference, FieldMap
4. Modules
a) Mapping: arcpy.mapping / arcpy.mp
b) Data access: arcpy.da
c) Map algebra: arcpy.sa
d) Network Analyst: arcpy.na
ArcPy - functions
• import arcpy
Download the Esri Select the session Scroll down to Complete Answers
Events app and find you attended find the survey and Select “Submit”
your event
THANK YOU!