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

Extracting Tweet geographic coordinates with tweepy


In this step, you'll create a Python script that uses the Python tweepy module to extract tweets containing geographic coordinates and write this information to a local feature class. The tweepy module is designed to provide access to all the Twitter REST API methods. This will be a standalone script that can be run from the command line or the Python development environment. It will create a listener style environment that will continue to be executed, looking for live tweets until you kill the process.

Follow these steps to create the script:

  1. Before completing this section of the chapter, you will need to download and install the tweepy Python module using pip. Issue the following command from Command Prompt. The instruction to install pip can be found in previous chapter:

    pip install tweepy 
    
  2. Tweepy supports the OAuth authentication required to connect with Twitter. The first step is to register your client application with Twitter. In...