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 the Create Line Plot tool


The Create Line Plot tool will create a line plot that depicts the number of crimes over time. This tool will be added to the Crime Analysis toolbox created in the previous chapter. It will use a combination of ArcPy and Plotly to create the graph.

This tool will use an existing point feature class layer imported with the Import Records tool. It will aggregate the total number of crimes by the month and plot the results to a line plot graph. Input parameters will include the feature class and field to be charted, along with a chart title, location, and filename for the output chart:

  1. If required, open C:\ArcGIS_Blueprint_Python\ch5\SeattleCrimes.mxd in ArcMap.

  2. Locate the CrimeAnalysis.pyt toolbox that was created in the last chapter.

  3. Open the code for the toolbox in your Python development environment.

  4. Copy and paste one of the existing tools at the bottom of the CrimeAnalysis.pyt file.

  5. Rename the class CreateLinePlot.

  6. Remove the code inside the getParameterInfo...