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
About the Author
About the Reviewers

Coding the VisualizeMigration tool

In this final section, you'll create a new tool in the Migration Patterns toolbox that can be used to visualize elk migration patterns in one-week increments that have beginning and end dates, as specified through the tool. The tool will also export maps in the PDF format for each week:

  1. Import the arcpy.mapping and datetime modules that will be used in this class:

    import arcpy
    import arcpy.mapping as mapping
    import csv
    import os
    import datetime
  2. Create a new tool called VisualizeMigration by copying and pasting the existing ImportCollarData code and then renaming the class to VisualizeMigration.

  3. In the VisualizeMIgration class, set the label and description properties, as shown in the following code through the __init__ method:

    class VisualizeMigration(object):
        def __init__(self):
            """Define the tool (tool name is the name of the class)."""
            self.label = "Visualize Elk Migration"
            self.description = "Visualize Elk Migration"