Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ArcGIS Blueprints

You're reading from   ArcGIS Blueprints Explore the robust features of Python to create real-world ArcGIS applications through exciting, hands-on projects

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher Packt
ISBN-13 9781785286223
Length 378 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Eric Pimpler Eric Pimpler
Author Profile Icon Eric Pimpler
Eric Pimpler
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Extracting Real-Time Wildfire Data from ArcGIS Server with the ArcGIS REST API FREE CHAPTER 2. Tracking Elk Migration Patterns with GPS and ArcPy 3. Automating the Production of Map Books with Data Driven Pages and ArcPy 4. Analyzing Crime Patterns with ArcGIS Desktop, ArcPy, and Plotly(Part 1) 5. Analyzing Crime Patterns with ArcGIS Desktop, ArcPy, and Plotly(Part 2) 6. Viewing and Querying Parcel Data 7. Using Python with the ArcGIS REST API and the GeoEnrichment Service for Retail Site Selection 8. Supporting Search and Rescue Operations with ArcPy, Python Add-Ins, and simplekml 9. Real-Time Twitter Mapping with Tweepy, ArcPy, and the Twitter API 10. Integrating Smartphone Photos with ArcGIS Desktop and ArcGIS Online A. Overview of Python Libraries for ArcGIS Index

Chapter 1. Extracting Real-Time Wildfire Data from ArcGIS Server with the ArcGIS REST API

The ArcGIS platform, which contains a number of different products, including ArcGIS Desktop, ArcGIS Pro, ArcGIS for Server, and ArcGIS Online, provides a robust environment to perform geographic analysis and mapping. The content produced by this platform can be integrated using the ArcGIS REST API and a programming language such as Python. Many of the applications we'll build in this book use the ArcGIS REST API as the bridge to exchange information between software products.

We're going to start by developing a simple ArcGIS Desktop custom script tool in ArcToolbox that connects to an ArcGIS Server map service to retrieve real-time wildfire information. The wildfire information will be retrieved from a USGS map service that provides real-time wildfire data. For this chapter and all other chapters in this book, the reader is expected to have intermediate-level experience of Python and ArcPy. Ideally, you should be running version 10.3 or 10.2 of ArcGIS Desktop. Previous versions of ArcGIS Desktop have some significant differences that may cause problems in the development of some applications in the book.

We'll use the ArcGIS REST API and the Python requests module to connect to the map service and request the data. The response from the map service will contain data that will be written to a feature class stored in a local geodatabase using the ArcPy data access module.

This will all be accomplished with a custom script tool attached to an ArcGIS Python Toolbox. ArcGIS Python toolboxes are relatively new; they were first introduced in version 10.1 of ArcGIS Desktop. They provide a Python-centric method to create custom toolboxes and tools. The older method to create toolboxes in ArcGIS Desktop, while still relevant, requires a combination of Python and a wizard-based approach to create tools.

In this chapter, we will cover the following topics:

  • ArcGIS Desktop Python's toolboxes
  • The ArcGIS Server map and feature services
  • The Python requests module
  • The Python JSON module
  • The ArcGIS REST API
  • The ArcPy data access module that is arcpy.da

A general overview of the Python libraries for ArcGIS is provided in the appendix of this book. It is recommended that you read this chapter before continuing with the appendix and other chapters.

You have been reading a chapter from
ArcGIS Blueprints
Published in: Dec 2015
Publisher: Packt
ISBN-13: 9781785286223
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime