Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By : Donald Eric Pimpler, Eric Pimpler
Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By: Donald Eric Pimpler, Eric Pimpler

Overview of this book

Table of Contents (22 chapters)
Programming ArcGIS with Python Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In this chapter, we will cover some topics that are of a more advanced nature. Specifically, you will learn how to access the ArcGIS REST API using the Python requests module. In doing so, you will learn how to access data and services published by ArcGIS Server and ArcGIS Online. The Python requests module includes capabilities that allow your script to submit requests to a URL endpoint and receive responses in various formats, including the popular JSON format. Toward the end of the chapter, we will also over a couple of miscellaneous ArcPy topics, including the use of the FieldMap and FieldMappings objects to merge datasets and also working with ValueTables for situations where a tool has the capability of accepting multiple inputs.