Book Image

Mastering Geospatial Analysis with Python

By : Silas Toms, Paul Crickard, Eric van Rees
Book Image

Mastering Geospatial Analysis with Python

By: Silas Toms, Paul Crickard, Eric van Rees

Overview of this book

Python comes with a host of open source libraries and tools that help you work on professional geoprocessing tasks without investing in expensive tools. This book will introduce Python developers, both new and experienced, to a variety of new code libraries that have been developed to perform geospatial analysis, statistical analysis, and data management. This book will use examples and code snippets that will help explain how Python 3 differs from Python 2, and how these new code libraries can be used to solve age-old problems in geospatial analysis. You will begin by understanding what geoprocessing is and explore the tools and libraries that Python 3 offers. You will then learn to use Python code libraries to read and write geospatial data. You will then learn to perform geospatial queries within databases and learn PyQGIS to automate analysis within the QGIS mapping suite. Moving forward, you will explore the newly released ArcGIS API for Python and ArcGIS Online to perform geospatial analysis and create ArcGIS Online web maps. Further, you will deep dive into Python Geospatial web frameworks and learn to create a geospatial REST API.
Table of Contents (23 chapters)
Title Page
Copyright and Credits
Packt Upsell
Geoprocessing with Geodatabases


About the authors

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.

I would like to thank my beautiful wife, Yolanda, for her love and support; my children, Miles and Ivana, for giving up some daddy time; the editors, who have caught all my mistakes and made the book polished; and my coauthors Silas Toms and Eric van Rees. It was a pleasure working with these two great minds. Thank you for inviting me to be a part of this book.



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.

I would like to thank my wife, Regina, for her support. I'd like to thank my coauthors, Paul Crickard and Silas Toms, for their assistance during the writing of this book. I would like to thank Eric Pimpler for giving me the opportunity to write technical content on his website and for inspiring me to contribute to this book.

Silas Toms is a geographer and geospatial developer from California. Over the last decade, Silas has become an expert in the use of Python programming for geospatial analysis, publishing two books on the use of ArcPy. Now, as a President of Loki Intelligent Corporation, Silas develops ETL automation tools, interactive web maps, enterprise GIS, and location data for businesses and governments. Silas teaches classes on programming for GIS with BayGeo, and co-hosts The Mappyist Hour podcast.

I would like to thank Maureen Stewart for her love and support. I want to thank my good friends Rowena Harris, Sacha Selim, Dara O'Beirne, Sam Oakley, Karla King, Todd Barr, and Michelle Toennies. Thanks also to BayGeo, HSU & SFSU Geography Depts., and all of my students. A big thanks to Paul and Eric. Good luck to Devon and Zsa Zsa!

About the reviewer

Karla King is a Solutions Engineer at a satellite imagery and machine learning start-up. Before joining Descartes Labs, she worked at a handful of geospatial companies in the Bay Area, developing software to create maps for autonomous vehicles and writing technical documentation for Google Earth Engine. Karla got her start in remote sensing monitoring the health of cloud forests in Honduras.

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.