Skip to main content
GeoAgent: An Agent-Based QGIS Plugin for Natural-Language-Driven Geospatial Analysis with Multi-Backend Large Language Model Support

GeoAgent: An Agent-Based QGIS Plugin for Natural-Language-Driven Geospatial Analysis with Multi-Backend Large Language Model Support

This is a Preprint and has not been peer reviewed. The published version of this Preprint is available: https://doi.org/10.5281/zenodo.23048185. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Authors

Tek Bahadur Kshetri , Rabin Ojha

Abstract

Geospatial analysis is essential across the earth and environmental sciences, yet conventional geographic information systems (GIS) rely on a procedure-oriented paradigm that demands substantial operational expertise. We present GeoAgent, an open-source QGIS plugin that enables goal-driven geospatial workflows through natural language conversation powered by large language models (LLMs). GeoAgent features two operating modes: a General mode for exploratory querying and layer management, and a Processing mode for multi-step workflow execution. Built on LangGraph state machines, the system decomposes requests into dependency-ordered task queues, discovers algorithms across the entire QGIS Processing registry (~250+ native, GDAL, GRASS GIS, and SAGA tools) via lexical scoring on LLM-generated keywords, introspects parameter schemas at runtime, and executes workflows with LLM-steered error diagnosis and retry loops. Schema-validated structured outputs ensure consistent performance across interchangeable cloud (OpenAI, Google Gemini, Anthropic) and local privacy-preserving (Ollama) backends. We demonstrate GeoAgent through a reproducible flood-exposure screening case study using a bundled dataset and compare its architecture against existing LLM-GIS integrations. GeoAgent is released under the MIT license on the official QGIS Plugin Repository.

DOI

https://doi.org/10.31223/X53803

Subjects

Computer and Systems Architecture, Geographic Information Sciences, Other Earth Sciences, Spatial Science

Keywords

QGIS, Large Language Models, LLM Agent, Natural-language interfaces, geo-processing, open-source GIS, Agentic workflows

Dates

Published: 2026-10-01 18:12

Last Updated: 2026-10-01 18:12

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
None

Data Availability:
The code and data available in this work is inside above mentioned DOI.

Metrics

Views: 43

Downloads: 3