Geocomputation with Python (geocompy) is motivated by the need for an introductory, yet rigorous and up-to-date, resource geographic data with the most popular programming language in the world. A unique selling point of the book is its cohesive and joined-up coverage of both vector and raster geographic data models and consistent learning curve. We aim to minimize surprises, with each section and chapter building on the previous. If you’re just starting out with Python for working with geographic data, this book is an excellent place to start.

There are many resources on Python on ‘GeoPython’ but none that fill this need for an introductory resource that provides strong foundations for future work. We want to avoid reinventing the wheel and provide something that fills an ‘ecological niche’ in the wider free and open source software for geospatial (FOSS4G) ecosystem. Key features include:

  1. Doing basic operations well
  2. Integration of vector and raster datasets operations
  3. Clear explanation of each line of code in the book to minimize surprises
  4. Exercises at the end of each chapter with reproducible and open solutions
  5. Provision of lucid example datasets and meaningful operations to illustrate the applied nature of geographic research

This book is complementary with, and adds value to, other projects in the ecosystem, as highlighted in the following comparison between Geocomputation with Python and related GeoPython books:

Another unique feature of the book is that it is part of a wider community. Geocomputation with Python is a sister project of Geocomputation with R, a book on geographic data analysis, visualization, and modeling using the R programming language that has 60+ contributors and an active community, not least in the associated Discord group. Links with the vibrant ‘R-spatial’ community, and other communities such as GeoRust and JuliaGeo, lead to many opportunities for mutual benefit across open source ecosystems.