Book Image

ArcGIS Blueprints

By : Donald Eric Pimpler, Eric Pimpler
Book Image

ArcGIS Blueprints

By: Donald Eric Pimpler, Eric Pimpler

Overview of this book

This book is an immersive guide to take your ArcGIS Desktop application development skills to the next level It starts off by providing detailed description and examples of how to create ArcGIS Desktop Python toolboxes that will serve as containers for many of the applications that you will build. We provide several practical projects that involve building a local area/community map and extracting wildfire data. You will then learn how to build tools that can access data from ArcGIS Server using the ArcGIS REST API. Furthermore, we deal with the integration of additional open source Python libraries into your applications, which will help you chart and graph advanced GUI development; read and write JSON, CSV, and XML format data sources; write outputs to Google Earth Pro, and more. Along the way, you will be introduced to advanced ArcPy Mapping and ArcPy Data Access module techniques and use data-driven Pages to automate the creation of map books. Finally, you will learn advanced techniques to work with video and social media feeds. By the end of the book, you will have your own desktop application without having spent too much time learning sophisticated theory.
Table of Contents (18 chapters)
ArcGIS Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating migration patterns for Python toolbox


Just like we did in the first chapter of the book, we'll build an ArcGIS Python Toolbox to hold the code for our application. I won't walk you through every single step like I did in the first chapter, but I will provide some general guidelines instead. If needed, refer to the first chapter for the specifics of how to create an ArcGIS Python Toolbox.

The Python toolboxes encapsulate everything in one place: parameters, validation code, and source code. A Python Toolbox functions like any other toolbox in ArcToolbox, but it is created entirely in Python and has a file extension of .pyt. As you learned in the last chapter, it is created programmatically as a class named Toolbox.

The following steps will help you to create migration patterns for Python toolbox:

  1. Open ArcCatalog. You can create a Python Toolbox in a folder by right-clicking on the folder and navigating to New | Python Toolbox. In ArcCatalog, there is a folder called Toolboxes; inside...