ArcPy and ArcGIS – Geospatial Analysis with Python

Use the ArcPy module to automate the analysis and mapping of geospatial data in ArcGIS

ArcPy and ArcGIS – Geospatial Analysis with Python

This ebook is included in a Mapt subscription
Silas Toms

1 customer reviews
Use the ArcPy module to automate the analysis and mapping of geospatial data in ArcGIS
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Preview in Mapt

Book Details

ISBN 139781783988662
Paperback224 pages

Book Description

ArcGIS allows for complex analyses of geographic information. The ArcPy module is used to script these ArcGIS analyses, providing a productive way to perform geo-analyses and to automate map production.

This book will guide you from basic Python scripting to advanced ArcPy script tools. This book starts off with setting up your Python environment, demonstrates a complex ArcPy script tool with multiple iterations, illustrates data access module cursors, and explains how to use ArcPy Geometry classes. Then, you will learn how to output maps using ArcPy.Mapping, and how to create ArcGIS script tools.

With the help of this book, you will be able to create repeatable analyses reducing the time-consuming nature of GIS, making you into a GIS professional as powerful as a whole team.

Table of Contents

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
Summary
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
Summary
Chapter 4: Complex ArcPy Scripts and Generalizing Functions
Python functions–Avoid repeating code
Summary
Chapter 5: ArcPy Cursors – Search, Insert, and Update
The data access module
Inserting a polyline geometry
Inserting a polygon geometry
Summary
Chapter 6: Working with ArcPy Geometry Objects
ArcPy geometry object classes
Summary
Chapter 7: Creating a Script Tool
Adding dynamic parameters to a script
Creating a Script tool
Inspecting the final script
Summary
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
Summary
Chapter 9: More ArcPy.Mapping Techniques
Using arcpy.mapping to control Layer objects
Definition queries
Controlling the data frame window extent and scale
Summary
Chapter 10: Advanced Geometry Object Methods
Creating a Python module
Adding advanced analysis components
Summary
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
Summary
Chapter 12: The End of the Beginning
Getting field information from feature classes
Summary

What You Will Learn

  • Understand how to integrate Python into ArcGIS and make GIS analysis faster and easier
  • Model an analysis and export it to Python for further improvement
  • Create Python functions from exported scripts using ArcToolbox tools to avoid repetitive code
  • Update the records of interest in your existing geospatial data automatically using data cursors
  • Add new geospatial data to existing datasets automatically from field-collected data or data produced during analysis
  • Export formatted analysis results to spreadsheets automatically
  • Update map documents with analysis-generated data and export maps to PDF or image formats
  • Create geometric networks and analyze routes using scripts

Authors

Table of Contents

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
Summary
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
Summary
Chapter 4: Complex ArcPy Scripts and Generalizing Functions
Python functions–Avoid repeating code
Summary
Chapter 5: ArcPy Cursors – Search, Insert, and Update
The data access module
Inserting a polyline geometry
Inserting a polygon geometry
Summary
Chapter 6: Working with ArcPy Geometry Objects
ArcPy geometry object classes
Summary
Chapter 7: Creating a Script Tool
Adding dynamic parameters to a script
Creating a Script tool
Inspecting the final script
Summary
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
Summary
Chapter 9: More ArcPy.Mapping Techniques
Using arcpy.mapping to control Layer objects
Definition queries
Controlling the data frame window extent and scale
Summary
Chapter 10: Advanced Geometry Object Methods
Creating a Python module
Adding advanced analysis components
Summary
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
Summary
Chapter 12: The End of the Beginning
Getting field information from feature classes
Summary

Book Details

ISBN 139781783988662
Paperback224 pages
Read More
From 1 reviews

Read More Reviews