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

Scheduling the script

In this section, you'll learn how to schedule the script using the Windows Task Scheduler. Scheduling the script will require the creation of a batch file. Batch files can contain scripts and operating system commands. The batch file will then be added to the Windows Task Scheduler to run at a specific time interval. To do this follow these steps:

  1. Open Notepad.

  2. Add the following lines of text to the file. These lines of code will switch the directory where the Python script is stored and execute the script, passing in a name for the output feature class and the number of hours to be monitored for tweets. You can change this value if you'd like:

    cd c:\ArcGIS_Blueprint_Python\ch9
    python Tweets 48
  3. Save the file to your desktop as MonitorTweets.bat. Make sure you change the Save As Type drop-down list to All Files; otherwise, you'll end up with a file called MonitorTweets.bat.txt.

  4. Open the Windows Task Scheduler by navigating to Start | All Programs | Accessories...