更新时间:2021-07-23 20:23:20
coverpage
ArcPy and ArcGIS – Geospatial Analysis with Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Introduction to Python for ArcGIS
Overview of Python
Python as a programming language
Important Python Modules for GIS Analysis
Summary
Chapter 2. Configuring the Python Environment
What is a Python script?
What is the Python interpreter?
Make Python scripts executable when clicked on
Integrated Development Environments (IDEs)
Python folder structure
The sys.path.append() method
Chapter 3. Creating the First Python Script
Prerequisites
Creating a model and exporting to Python
Exporting the model and adjusting the script
File paths in Python
Continuing the script analysis: the ArcPy tools
Adjusting the Script
Adding the CSV module to the script
The final script
Chapter 4. Complex ArcPy Scripts and Generalizing Functions
Python functions–Avoid repeating code
Chapter 5. ArcPy Cursors – Search Insert and Update
The data access module
Inserting a polyline geometry
Inserting a polygon geometry
Chapter 6. Working with ArcPy Geometry Objects
ArcPy geometry object classes
Chapter 7. Creating a Script Tool
Adding dynamic parameters to a script
Creating a Script tool
Inspecting the final script
Chapter 8. Introduction to ArcPy.Mapping
Using ArcPy with map documents
Inspecting and replacing layer sources
Automated map document adjustment
Running the script in the Python Window
Chapter 9. More ArcPy.Mapping Techniques
Using arcpy.mapping to control Layer objects
Definition queries
Controlling the data frame window extent and scale
Chapter 10. Advanced Geometry Object Methods
Creating a Python module
Adding advanced analysis components
Chapter 11. Network Analyst and Spatial Analyst with ArcPy
The Network Analyst extension
Using Network Analyst
The Network Analyst module
Accessing the Spatial Analyst Extension
The final result
Chapter 12. The End of the Beginning
Getting field information from feature classes
Index