Reader small image

You're reading from  Mastering Geospatial Analysis with Python

Product typeBook
Published inApr 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781788293334
Edition1st Edition
Languages
Right arrow
Authors (3):
Silas Toms
Silas Toms
author image
Silas Toms

Silas Toms is a long-time geospatial professional and author who has previously published ArcPy and ArcGIS and Mastering Geospatial Analysis with Python. His career highlights include developing the real-time common operational picture used at Super Bowl 50, building geospatial software for autonomous cars, designing computer vision for next-gen insurance, and developing mapping systems for Zillow. He now works at Volta Charging, predicting the future of electric vehicle adoption and electric charging infrastructure.
Read more about Silas Toms

Paul Crickard
Paul Crickard
author image
Paul Crickard

Paul Crickard authored a book on the Leaflet JavaScript module. He has been programming for over 15 years and has focused on GIS and geospatial programming for 7 years. He spent 3 years working as a planner at an architecture firm, where he combined GIS with Building Information Modeling (BIM) and CAD. Currently, he is the CIO at the 2nd Judicial District Attorney's Office in New Mexico.
Read more about Paul Crickard

Eric van Rees
Eric van Rees
author image
Eric van Rees

Eric van Rees was first introduced to Geographical Information Systems (GIS) when studying Human Geography in the Netherlands. For 9 years, he was the editor-in-chief of GeoInformatics, an international GIS, surveying, and mapping publication and a contributing editor of GIS Magazine. During that tenure, he visited many geospatial user conferences, trade fairs, and industry meetings. He focuses on producing technical content, such as software tutorials, tech blogs, and innovative new use cases in the mapping industry.
Read more about Eric van Rees

View More author details
Right arrow

Chapter 9. ArcGIS API for Python and ArcGIS Online

Thischapter will introduce the ArcGIS Application Program Interface(API) for Python and ArcGIS Online. The ArcGIS API for Python is a Python library for working with maps and geospatial data. This API can be installed locally usingcondaand interacts with Esri's cloud GIS, whether that's ArcGIS Online (SaaS) or Portal for ArcGIS, a server product thatoffers on-premises cloud GIS deployment for organizations. The API offers a modern solution to scripting for web mapping with Python and works well with Jupyter Notebooks.

The following topics will be covered in this chapter:

 

  • Introducing the ArcGIS API for Python
  • Installing the API
  • Using the API with different Esri user accounts
  • Introducing some modules of the API
  • Interacting with the API's map widget
  • Searching and displaying vector data
  • Displaying and geoprocessing of raster data
  • Setting up a personalized account for using ArcGIS Online
  • Publishing and managing content in ArcGIS Online

Introducing the ArcGIS API for Python and ArcGIS Online


Esri, the geospatial software company known for its ArcGIS platform, adopted and integrated Python into their ArcGIS desktop software, as well as its successor ArcGIS Pro. The first Python site package developed by Esri was the ArcPy site package, which is a collection of Python modules that offers all existing, as well as extended, ArcMap and ArcGIS Pro functionality. Python can now be used as a scripting and programming language to automate repetitive tasks that involve a lot of interaction with the Graphical User Interface (GUI). With ArcPy, these tasks could be carried out through a Python script, add-on, or toolbox.

Python was introduced successfully with ArcGIS desktop, while GIS itself was moving into the cloud—not only geospatial data but also the software itself. Esri offered organizations the possibility to do this through a variety of cloud environment offerings, using either public, private, or hybrid cloud services. In this...

Summary


This chapter introduced the brand new ArcGIS API for Python, which is built on Python 3.5. You learned how to make use of the API, Jupyter Notebooks, and data processing with data stored in the cloud-based ArcGIS Online system. We covered how the API is organized into different modules, how to install the API, how to use the map widget, how to log in to ArcGIS Online using different user accounts, and working with vector and raster data. Using some of the API modules, we learned how to use the API for Python to perform basic geospatial analysis and to create ArcGIS Online web maps.

The next chapter will introduce Python tools for interacting with cloud-based data for search and fast data processing. In particular, it focuses on the use of Elasticsearch and MapD GPU databases, both of which are based on the AWS cloud infrastructure. The reader will learn to create cloud services for geospatial search, geolocated data processing, geolocated data, and learn how to use Python libraries...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Mastering Geospatial Analysis with Python
Published in: Apr 2018Publisher: PacktISBN-13: 9781788293334
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.
undefined
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 $15.99/month. Cancel anytime

Authors (3)

author image
Silas Toms

Silas Toms is a long-time geospatial professional and author who has previously published ArcPy and ArcGIS and Mastering Geospatial Analysis with Python. His career highlights include developing the real-time common operational picture used at Super Bowl 50, building geospatial software for autonomous cars, designing computer vision for next-gen insurance, and developing mapping systems for Zillow. He now works at Volta Charging, predicting the future of electric vehicle adoption and electric charging infrastructure.
Read more about Silas Toms

author image
Paul Crickard

Paul Crickard authored a book on the Leaflet JavaScript module. He has been programming for over 15 years and has focused on GIS and geospatial programming for 7 years. He spent 3 years working as a planner at an architecture firm, where he combined GIS with Building Information Modeling (BIM) and CAD. Currently, he is the CIO at the 2nd Judicial District Attorney's Office in New Mexico.
Read more about Paul Crickard

author image
Eric van Rees

Eric van Rees was first introduced to Geographical Information Systems (GIS) when studying Human Geography in the Netherlands. For 9 years, he was the editor-in-chief of GeoInformatics, an international GIS, surveying, and mapping publication and a contributing editor of GIS Magazine. During that tenure, he visited many geospatial user conferences, trade fairs, and industry meetings. He focuses on producing technical content, such as software tutorials, tech blogs, and innovative new use cases in the mapping industry.
Read more about Eric van Rees