A powerful Python package for integrating artificial intelligence with geospatial data analysis and visualization
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:
- Interactive and programmatic search and download of remote sensing imagery and geospatial data.
- Automated dataset preparation with image chips and label generation.
- Model training for tasks such as classification, detection, and segmentation.
- Inference pipelines for applying models to new geospatial datasets.
- Interactive visualization through integration with Leafmap and MapLibre.
- 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.
A comprehensive book on GeoAI is available at https://book.opengeoai.org.
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.
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.
- Interactive multi-layer visualization of vector and raster data stored locally or in cloud storage
- Customizable styling and symbology
- Time-series data visualization capabilities
- 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()andwrite_vector()writers - Automated generation of training datasets with image chips and corresponding labels, spatial splitting (
spatial_train_val_test_splitwithbuffer_distance > 0for zero leakage across split boundaries, andcreate_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
- 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)
- 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
- Curated catalog of remote sensing foundation models via
geoai.list_foundation_models()andgeoai.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, plusFoundationSegmenterwith 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
- 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, andpipelinesubcommands - 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) includingGeoAIWorkflowAgentand sandboxedPipelineToolsfor 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)
pip install geoai-pyFor additional features (such as change detection, cloud/water masking, and mask cleaning):
pip install "geoai-py[extra]"uv pip install geoai-pyconda install -c conda-forge geoaimamba install -c conda-forge geoaiSee the full Installation Guide for optional dependency extras, GPU/CUDA setup, and runtime environment variables.
Check out the QGIS Plugin page if you are interested in using GeoAI with QGIS.
Comprehensive documentation is available at https://opengeoai.org, including:
- Detailed API reference
- Tutorials and example notebooks
- Contributing guide
We welcome contributions of all kinds! See our contributing guide for ways to get started.
GeoAI is free and open source software, licensed under the MIT License.
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.





