arrow
Return

GeoColab: an LLM-based multi-agent collaborative framework for geospatial code generation

delete2025-11-06
delete0
delete
OA
AI
H
Huayi Wu *
H
Haoyue Jiao
S
Shuyang Hou *
J
Jianyuan Liang
Z
Zhangxiao Shen
A
Anqi Zhao
Y
Yaxian Qing
F
Fengying Jin
X
Xuefeng Guan
Z
Zhipeng Gui
DOI:10.1080/17538947.2025.2569405delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Automated geospatial code generation using large language models (LLMs) faces challenges in requirement parsing, syntax adaptation, path retrieval, code validation, and spatial recognition, often leading to ‘code hallucinations.’ To address these, we introduce GeoColab, the first multi-agent framework for geospatial code generation. It defines three roles—product manager, algorithm engineer, and programmer—operating under standardized procedures. GeoColab integrates a knowledge support mechanism and retrieval-augmented generation (RAG), utilizing 8,729 function syntax documents, 2,732 datasets, 115 external APIs, 94 projection methods, and 3,837 CRS transformation entries, all stored and accessed via a document management system. We also present the GeoCodes benchmark, with 25 explicit, 15 incomplete, and 10 open-ended tasks. Applied to seven mainstream LLMs, including GPT-4.5 and DeepSeek-V3-0324, GeoColab improves code executability, accuracy, and readability by 7.59%–26.09%, surpassing baselines like CodeCoT and ChatDev by up to 31.03%. Ablation studies show a 4.39%–9.30% performance drop without knowledge modules, highlighting their importance. GeoColab is open-sourced and supports local deployment, reducing technical barriers to geospatial programming and broadening LLMs' use in GIS.
Keywords:
Geospatial code generation
large language models
multi-agent collaboration
deepseek
evaluation benchmark

Journal

International Journal of Digital Earth cover
International Journal of Digital Earth
IF:
4.9
Papers:
1.9K
Citations:
4.7K

Organization

Y
Yellow River Institute of Hydraulic Research
Scholars:
176
Papers: 96
Citations: 1.9K
W
wuhan university
Scholars:
8.0W
Papers: 5.8W
Citations: 70