Programming ArcGIS 10.1 with Python Cookbook
eBook - ePub

Programming ArcGIS 10.1 with Python Cookbook

  1. 304 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Programming ArcGIS 10.1 with Python Cookbook

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

ArcGIS is an industry standard geographic information system from ESRI.

This book will show you how to use the Python programming language to create geoprocessing scripts, tools, and shortcuts for the ArcGIS Desktop environment.

This book will make you a more effective and efficient GIS professional by showing you how to use the Python programming language with ArcGIS Desktop to automate geoprocessing tasks, manage map documents and layers, find and fix broken data links, edit data in feature classes and tables, and much more.

"Programming ArcGIS 10.1 with Python Cookbook" starts by covering fundamental Python programming concepts in an ArcGIS Desktop context. Using a how-to instruction style you'll then learn how to use Python to automate common important ArcGIS geoprocessing tasks.

In this book you will also cover specific ArcGIS scripting topics which will help save you time and effort when working with ArcGIS. Topics include managing map document files, automating map production and printing, finding and fixing broken data sources, creating custom geoprocessing tools, and working with feature classes and tables, among others.

In "Python ArcGIS 10.1 Programming Cookbook" you'll learn how to write geoprocessing scripts using a pragmatic approach designed around an approach of accomplishing specific tasks in a Cookbook style format.

Approach

This book is written in a helpful, practical style with numerous hands-on recipes and chapters to help you save time and effort by using Python to power ArcGIS to create shortcuts, scripts, tools, and customizations.

Who this book is for

"Programming ArcGIS 10.1 with Python Cookbook" is written for GIS professionals who wish to revolutionize their ArcGIS workflow with Python. Basic Python or programming knowledge is essential(?).

Frequently asked questions

Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Programming ArcGIS 10.1 with Python Cookbook by Eric Pimpler in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Information

Year
2013
ISBN
9781849694445
Edition
1

Programming ArcGIS 10.1 with Python Cookbook


Table of Contents

Programming ArcGIS 10.1 with Python Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Fundamentals of the Python Language for ArcGIS
Using IDLE for Python script development
The Python shell window
The Python script window
Editing existing Python scripts
Executing scripts from IDLE
Python language fundamentals
Commenting code
Importing modules
Variables
Built-in datatypes
Strings
String manipulation
Numbers
Lists
Tuples
Dictionaries
Classes and objects
Statements
Decision support statements
Looping statements
Try statements
with statements
File I/O
Summary
2. Writing Basic Geoprocessing Scripts with ArcPy
Introduction
Using the ArcGIS Python window
Getting ready
How to do itā€¦
Accessing ArcPy with Python
Getting ready
How to do itā€¦
How it worksā€¦
Executing tools from a script
How to do itā€¦
How it worksā€¦
There's moreā€¦
Using ArcGIS Desktop help
Getting ready
How to do it...
How it works...
Using variables to store data
Getting ready
How to do it...
How it works...
Accessing ArcPy modules with Python
Getting ready
How to do itā€¦
How it worksā€¦
3. Managing Map Documents and Layers
Introduction
Referencing the current map document
Getting ready
How to do itā€¦
How it works
Referencing map documents on a disk
Getting ready
How to do itā€¦
How it worksā€¦
Accessing a data frame
Getting ready
How to do it...
How it works...
Getting a list of layers in a map document
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Restricting the list of layers
Getting ready
How to do itā€¦
How it worksā€¦
Changing the map extent
Getting ready
How to do it...
How it works...
Getting a list of tables
Getting ready
How to do itā€¦
How it worksā€¦
Adding layers to a map document
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Inserting layers into a map document
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Updating layer symbology
Getting ready
How to do itā€¦
How it worksā€¦
There's more...
Updating layer properties
Getting ready
How to do itā€¦
4. Finding and Fixing Broken Data Links
Introduction
Finding broken data sources in your map document and layer files
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Fixing broken data sources with MapDocument.findAndReplaceWorkspacePaths()
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Fixing broken data sources with MapDocument.replaceWorkspaces()
Getting ready
How to do itā€¦
How it worksā€¦
Fixing individual Layer and Table objects with replaceDataSource()
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Finding all broken data sources in all map documents in a folder
Getting ready
How to do it...
How it works...
5. Automating Map Production and Printing
Introduction
Creating a list of layout elements
Getting ready...
How to do itā€¦
How it worksā€¦
Assigning a unique name to layout elements
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Restricting the layout elements returned by ListLayoutElements()
Getting ready
How to do itā€¦
How it works...
Updating layout element properties
Getting ready
How to do itā€¦
How it works...
Getting a list of available printers
Getting ready
How to do itā€¦
How it works...
Printing maps with PrintMap()
Getting ready
How to do itā€¦
How it works...
Exporting a map to a PDF file
Getting ready
How to do itā€¦
How it worksā€¦
Exporting a map to an image file
Getting ready
How to do itā€¦
How it worksā€¦
Creating a map book with PDFDocumentCreate() and PDFDocumentOpen()
Getting ready
How to do itā€¦
How it works...
There's moreā€¦
6. Executing Geoprocessing Tools from Scripts
Introduction
Finding geoprocessing tools
Getting ready
How to do itā€¦
How it worksā€¦
Retrieving a toolbox alias
Getting ready
How to do itā€¦
How it worksā€¦
Executing geoprocessing tools from a script
Getting ready
How to do itā€¦
How it worksā€¦
There's more...
Using the output of a tool as an input to another tool
Getting ready
How to do it...
How it works...
Setting environment variables and examining tool messages
Getting ready
How to do itā€¦
How it worksā€¦
7. Creating Custom Geoprocessing Tools
Introduction
Creating a custom geoprocessing tool
Getting ready
How to do itā€¦
How it worksā€¦
There's more...
8. Querying and Selecting Data
Introduction
Constructing proper attribute query syntax
Getting ready
How to do itā€¦
How it worksā€¦
Creating feature layers and table views
Getting ready
How to do itā€¦
How it works...
There's more...
Selecting features and rows with the Select Layer by Attribute tool
Getting ready
How to do itā€¦
How it worksā€¦
Selecting features with the Select by Location tool
Getting ready
How to do itā€¦
How ...

Table of contents

  1. Programming ArcGIS 10.1 with Python Cookbook