Skip to main content

GeoAI: Artificial Intelligence for Geospatial Data

image image image Conda Downloads Conda Recipe image image QGIS DOI

logo

A powerful Python package for integrating artificial intelligence with geospatial data analysis and visualization

📖 Introduction

GeoAI is a comprehensive Python package designed to bridge artificial intelligence (AI) and geospatial data analysis, providing researchers and practitioners with intuitive tools for applying machine learning techniques to geographic data. The package offers a unified framework for processing satellite imagery, aerial photographs, and vector data using state-of-the-art deep learning models. GeoAI integrates popular AI frameworks including PyTorch, Transformers, PyTorch Segmentation Models, and specialized geospatial libraries like torchange, enabling users to perform complex geospatial analyses with minimal code.

The package provides six core capabilities:

  1. Interactive and programmatic search and download of remote sensing imagery and geospatial data.
  2. Automated dataset preparation with image chips and label generation.
  3. Model training for tasks such as classification, detection, and segmentation.
  4. Inference pipelines for applying models to new geospatial datasets.
  5. Interactive visualization through integration with Leafmap and MapLibre.
  6. Seamless QGIS integration via a dedicated GeoAI plugin, enabling users to run AI-powered geospatial workflows directly within the QGIS desktop environment, without writing code.

GeoAI addresses the growing demand for accessible AI tools in geospatial research by providing high-level APIs that abstract complex machine learning workflows while maintaining flexibility for advanced users. The package supports multiple data formats (GeoTIFF, JPEG2000, GeoJSON, Shapefile, GeoPackage) and includes automatic device management for GPU acceleration when available. With over 50 modules and extensive notebook examples, GeoAI serves as both a research tool and educational resource for the geospatial AI community.

📚 Book

A comprehensive book on GeoAI is available at https://book.opengeoai.org.

📝 Statement of Need

The integration of artificial intelligence with geospatial data analysis has become increasingly critical across numerous scientific disciplines, from environmental monitoring and urban planning to disaster response and climate research. However, applying AI techniques to geospatial data presents unique challenges including data preprocessing complexities, specialized model architectures, and the need for domain-specific knowledge in both machine learning and geographic information systems.

Existing solutions often require researchers to navigate fragmented ecosystems of tools, combining general-purpose machine learning libraries with specialized geospatial packages, leading to steep learning curves and reproducibility challenges. While packages like TorchGeo, TerraTorch, and SRAI provide excellent foundational tools for geospatial deep learning, there remains a gap for comprehensive, high-level interfaces that can democratize access to advanced AI techniques for the broader geospatial community.

GeoAI addresses this need by providing a unified, user-friendly interface that abstracts the complexity of integrating multiple AI frameworks with geospatial data processing workflows. It lowers barriers for: (1) geospatial researchers who need accessible AI workflows without deep ML expertise; (2) AI practitioners who want streamlined geospatial preprocessing and domain-specific datasets; and (3) educators seeking reproducible examples and teaching-ready workflows.

The package's design philosophy emphasizes simplicity without sacrificing functionality, enabling users to perform sophisticated analyses such as building footprint extraction from satellite imagery, land cover classification, and change detection with just a few lines of code. By integrating cutting-edge AI models and providing seamless access to major geospatial data sources, GeoAI significantly lowers the barrier to entry for geospatial AI applications while maintaining the flexibility needed for advanced research applications.

Citations

If you find GeoAI useful in your research, please consider citing the following paper to support my work. Thank you for your support.

  • Wu, Q., (2026). GeoAI: A Python package for integrating artificial intelligence with geospatial data analysis and visualization. Journal of Open Source Software, 11(118), 9605, https://doi.org/10.21105/joss.09605.
  • 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 https://book.opengeoai.org.

🚀 Key Features

📊 Advanced Geospatial Data Visualization

  • Interactive multi-layer visualization of vector and raster data stored locally or in cloud storage
  • Customizable styling and symbology
  • Time-series data visualization capabilities

🛠️ Data Preparation & Processing

  • Streamlined access to satellite and aerial imagery from providers like Sentinel, Landsat, NAIP, and other open datasets
  • Provider-agnostic STAC search and windowed AOI clipping (stac_search, stac_download_aoi) supporting Planetary Computer, Earth Search, NASA CMR, USGS Landsat, and custom STAC endpoints
  • Tools for downloading, mosaicking, and preprocessing remote sensing data, plus cloud-native write_cog() and write_vector() writers
  • Automated generation of training datasets with image chips and corresponding labels, spatial splitting (spatial_train_val_test_split with buffer_distance > 0 for zero leakage across split boundaries, and create_spatial_splits), and pre-training dataset quality audits (validate_training_dataset)
  • Unified multi-sensor normalization (geoai.utils.normalization) with sidecar statistics persistence
  • Vector-to-raster and raster-to-vector conversion utilities optimized for AI workflows
  • Data augmentation techniques specific to geospatial data
  • Support for integrating Overture Maps data and other open datasets for training and validation

🖼️ Image Segmentation & Inference

  • Integration with PyTorch Segmentation Models for automatic feature extraction, with automatic mixed precision (use_amp=True), gradient accumulation (grad_accum_steps), and checkpoint resume (resume_from)
  • Reproducible k-fold segmentation training with optional site/scene grouping, loss- or IoU-based checkpoint selection, pooled out-of-fold metrics, and probability-averaged ensemble inference
  • Out-of-core row-strip streaming tiled inference (TiledRasterPredictor, stream_predict_geotiff) with D4 test-time augmentation (TTA), NoData propagation, checkpoint/resume, pixel uncertainty maps, and active-learning tile ranking (rank_uncertain_tiles)
  • Native PyTorch-to-ONNX export (export_pytorch_to_onnx) with parity verification, quantization, and normalization sidecar support
  • Specialized segmentation algorithms optimized for satellite and aerial imagery (buildings, water bodies, wetlands, solar panels, etc.)
  • Export capabilities to standard and cloud-native geospatial formats (COG, GeoJSON, Shapefile, GeoPackage, GeoParquet)

🔍 Image Classification

  • Pre-trained models for land cover and land use classification
  • Transfer learning utilities for fine-tuning models with your own data
  • Multi-temporal classification support for change detection
  • Accuracy assessment and validation tools

🛰️ Remote Sensing Foundation Models & Embeddings

  • Curated catalog of remote sensing foundation models via geoai.list_foundation_models() and geoai.get_foundation_model_info()
  • Filter by category (vision, vision-language, generative), modality (multispectral, SAR, hyperspectral, multimodal), or downstream task
  • Unified foundation model adapters (GeoFoundationBackbone, load_foundation_model()) across DINOv3, Prithvi, UniverSat, TerraTorch, and timm, plus FoundationSegmenter with LoRA fine-tuning
  • Spatial and semantic vector similarity search (GeoEmbeddingIndex), embedding-based change detection (embedding_change_detection), and bi-temporal vision-language change comparison (VLLMGeo.compare, vllm_compare)
  • Drawn from the Awesome Remote Sensing Foundation Models list

🌍 Additional Capabilities

  • Change detection with AI-enhanced feature extraction and multi-temporal embedding/VLM analysis
  • Object detection in aerial and satellite imagery
  • Georeferencing utilities for AI model outputs
  • Command-line interface (geoai) with diagnostics (geoai doctor), raster, vector, segment, detect, classify, change, embeddings, models, download, and pipeline subcommands
  • Batch processing pipelines (geoai.pipeline) with YAML/JSON configs, validate(), dry_run, step-level checkpoint/resume, and 12 built-in geospatial steps
  • AI Agents (geoai.agents) including GeoAIWorkflowAgent and sandboxed PipelineTools for natural-language geospatial workflows, STAC queries, and data operations
  • MCP Server (geoai-mcp-server) and Agent CLI harness (cli-anything-geoai) with bounded LRU model caching, GPU concurrency control, async background jobs, workspace resources, and Overture/pipeline tools
  • Native QGIS Processing Toolbox Provider with 7 algorithms and a unified cross-panel AI Processing Monitor with live worker VRAM telemetry and task cancellation
  • Modular optional dependency extras ([viz], [download], [caption], [onnx], [all], and specialized model stacks)

📦 Installation

Using pip

pip install geoai-py

For additional features (such as change detection, cloud/water masking, and mask cleaning):

pip install "geoai-py[extra]"

Using uv

uv pip install geoai-py

Using conda

conda install -c conda-forge geoai

Using mamba

mamba install -c conda-forge geoai

See the full Installation Guide for optional dependency extras, GPU/CUDA setup, and runtime environment variables.

⚙️ QGIS Plugin

Check out the QGIS Plugin page if you are interested in using GeoAI with QGIS.

demo

📋 Documentation

Comprehensive documentation is available at https://opengeoai.org, including:

  • Detailed API reference
  • Tutorials and example notebooks
  • Contributing guide

📺 Video Tutorials

GeoAI Made Easy: Learn the Python Package Step-by-Step (Beginner Friendly)

intro

GeoAI Workshop: Unlocking the Power of GeoAI with Python

cover

GeoAI Tutorials Playlist

cover

🤝 Contributing

We welcome contributions of all kinds! See our contributing guide for ways to get started.

📄 License

GeoAI is free and open source software, licensed under the MIT License.

Acknowledgments

We gratefully acknowledge the support of the following organizations:

  • NASA: This research is partially supported by the National Aeronautics and Space Administration (NASA) through Grant No. 80NSSC22K1742, awarded under the Open Source Tools, Frameworks, and Libraries Program.
  • AmericaView: This work is also partially supported by the U.S. Geological Survey through Grant/Cooperative Agreement No. G23AP00683 (GY23-GY27) in collaboration with AmericaView.

Metadata

Release files for geoai-py 0.44.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoai-py 0.44.2
File Size Uploaded Provenance Actions
geoai_py-0.44.2.tar.gz 774.5 kB Without provenance Details for geoai_py-0.44.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geoai-py 0.44.2
File Interpreter ABI Platform Actions
geoai_py-0.44.2-py3-none-any.whl Python 3 none any Details for geoai_py-0.44.2-py3-none-any.whl

Total release size: 1.6 MB

Release files / geoai_py-0.44.2.tar.gz

Download URL geoai_py-0.44.2.tar.gz
Size 774.5 kB
Tags Source
SHA-256 checksum
How to use checksums
071305c9b685e4f7a9f6c9ecddde2596815c166f2b3150bb58202074e486f677
BLAKE2b-256 checksum
How to use checksums
6868a9a5bc4477fa4adf14dd398fb00ee80b2c4299e531038e90d8bbc06bd6f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / geoai_py-0.44.2-py3-none-any.whl

Download URL geoai_py-0.44.2-py3-none-any.whl
Size 809.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e76411f42f05e8b5bff413597a75212c0f21b7b074d0594894be51c158133f35
BLAKE2b-256 checksum
How to use checksums
144e5ad10962ce666bb9f17414317303d6df14815ca43890177956dd106796bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for geoai-py 0.44.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.44.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page