Skip to content

giswqs/GeoAI-Book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GeoAI with Python

Introduction

Welcome to the official repository for GeoAI with Python: A Practical Guide to Open-Source Geospatial AI. This repository contains all the code examples featured in the book, designed to help you learn and apply GeoAI using open-source tools.

Get the Book

Print Edition

  • ๐Ÿ‡บ๐Ÿ‡ธ Englsih Full-Color Print Edition (430 pages) is available on Amazon (link)

PDF and EPUB Editions

๐Ÿ‡บ๐Ÿ‡ธ English | ๐Ÿ‡จ๐Ÿ‡ณ Chinese | ๐Ÿ‡จ๐Ÿ‡ฟ Czech | ๐Ÿ‡ณ๐Ÿ‡ฑ Dutch | ๐Ÿ‡ซ๐Ÿ‡ท French | ๐Ÿ‡ฉ๐Ÿ‡ช German | ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi | ๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian | ๐Ÿ‡ฎ๐Ÿ‡น Italian | ๐Ÿ‡ฏ๐Ÿ‡ต Japanese | ๐Ÿ‡ฐ๐Ÿ‡ท Korean | ๐Ÿ‡ต๐Ÿ‡น Portuguese | ๐Ÿ‡ท๐Ÿ‡บ Russian | ๐Ÿ‡ฒ๐Ÿ‡ฝ Spanish | ๐Ÿ‡น๐Ÿ‡ท Turkish

Cite the Book

If you use this book in your research or teaching, please consider citing it as follows:

Wu, Q. (2026). GeoAI with Python: A Practical Guide to Open-Source Geospatial AI. Independently published. PDF edition ISBN 979-8993859729; Print edition ISBN 979-8253507414. Available at book.opengeoai.org.

About This Book

Learn to apply deep learning and AI to satellite imagery, aerial photos, and geospatial data using Python. This practical, hands-on guide walks you from downloading remote sensing data to training and evaluating deep learning models, all using open-source tools.

What youโ€™ll learn

  • Set up a complete GeoAI environment with Python, PyTorch, and GPU acceleration.
  • Download satellite imagery from Microsoft Planetary Computer and open data portals.
  • Create interactive maps and prepare training datasets from large satellite images.
  • Train and evaluate models for seven core geospatial AI tasks: image recognition, object detection, semantic segmentation, instance segmentation, image translation, change detection, and pixel-level regression.
  • Apply foundation models, including the Segment Anything Model (SAM), vision-language models, and satellite embeddings, to real-world Earth observation problems.
  • Run AI workflows in QGIS without writing code using plugins for tree segmentation, water detection, and more.

Structure and format

  • 23 chapters of executable code examples organized in five parts: Foundations, Data Acquisition and Preparation, Core AI Tasks, Foundation Models, and QGIS Plugins.
  • All examples use real satellite imagery with PyTorch, torchgeo, segment-geospatial, leafmap, and geoai.
  • All code and datasets are freely available on GitHub and Source Cooperative for full reproducibility.

Who itโ€™s for

GIS professionals, remote sensing scientists, data scientists, and students who want to apply AI to geospatial data using Python and open-source tools.

Table of Contents

Preface

Part I: Foundations

  1. Introduction to GeoAI
  2. Setting Up Your Environment
  3. Geospatial Data Essentials

Part II: Data Acquisition and Preparation

  1. Downloading Remote Sensing Data
  2. Interactive Mapping and Visualization
  3. Preparing Training Data

Part III: Core AI Tasks

  1. Image Recognition
  2. Object Detection
  3. Semantic Segmentation
  4. Instance Segmentation
  5. Image Translation
  6. Change Detection
  7. Pixel-Level Regression

Part IV: Foundation Models and Satellite Embeddings

  1. SAM for Geospatial Applications
  2. Vision-Language Models
  3. Satellite Embeddings

Part V: QGIS Plugins

  1. Setting Up the GeoAI QGIS Plugin
  2. Tree Segmentation in QGIS
  3. Water Segmentation in QGIS
  4. Vision-Language Models in QGIS
  5. Segment Anything in QGIS
  6. Semantic Segmentation in QGIS
  7. Instance Segmentation in QGIS

About the Author

Dr. Qiusheng Wu is an Associate Professor and the Director of Graduate Studies in the Department of Geography & Sustainability at the University of Tennessee, Knoxville. He also serves as an Amazon Scholar. Dr. Wu's research focuses on advancing open-source geospatial analytics through cloud computing and GeoAI, with an emphasis on leveraging big geospatial data and artificial intelligence to study environmental change, particularly surface water and wetland inundation dynamics.

He is the creator and maintainer of several widely used open-source Python packages, including geemap for interactive Google Earth Engine visualization, leafmap for versatile geospatial mapping, segment-geospatial for applying the Segment Anything Model to geospatial data, and geoai for high-level GeoAI workflows. His open-source projects, available through the Open Geospatial Solutions organization on GitHub, have been widely adopted by researchers, educators, and practitioners worldwide.

Dr. Wu's work bridges remote sensing, Earth observation, and artificial intelligence to make large-scale geospatial data more accessible, reproducible, and intelligent. He is passionate about open science and believes that the best tools for understanding our planet should be freely available to everyone.

Licensing and Copyright

This book embraces the principles of open science and open education. To support transparency, learning, and reuse, the code examples in this book are released under a Creative Commons Attribution 4.0 International (CC BY 4.0) license. This means you are free to copy, modify, and distribute the code, even for commercial purposes, as long as appropriate credit is given.

Please attribute code usage by citing the book or linking to the GitHub repository:

Wu, Q. (2026). GeoAI with Python: A Practical Guide to Open-Source Geospatial AI. Independently published. PDF edition ISBN 979-8993859729; Print edition ISBN 979-8253507414. Available at book.opengeoai.org.

While the code is freely available, the text, figures, and images in this book are copyrighted ยฉ 2026 by the author and may not be reproduced, redistributed, or modified without explicit permission. This includes all written content, custom diagrams, and embedded visualizations unless otherwise noted.

If you wish to reuse or adapt any non-code material from the book (for example, for teaching, presentations, or publications), please contact the author to request permission.

This dual licensing approach helps balance open access to learning materials with the protection of original creative work. Thank you for respecting these terms and supporting the open-source geospatial community.

About

An open-access book on GeoAI

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors