GIS Copilot: Towards an Autonomous GIS Agent for Spatial Analysis

Temitope Akinboyewa,Zhenlong Li,Huan Ning,M. Naser Lessani
2024-11-05
Abstract:Recent advancements in Generative AI offer promising capabilities for spatial analysis. Despite their potential, the integration of generative AI with established GIS platforms remains underexplored. In this study, we propose a framework for integrating LLMs directly into existing GIS platforms, using QGIS as an example. Our approach leverages the reasoning and programming capabilities of LLMs to autonomously generate spatial analysis workflows and code through an informed agent that has comprehensive documentation of key GIS tools and parameters. The implementation of this framework resulted in the development of a "GIS Copilot" that allows GIS users to interact with QGIS using natural language commands for spatial analysis. The GIS Copilot was evaluated based on three complexity levels: basic tasks that require one GIS tool and typically involve one data layer to perform simple operations; intermediate tasks involving multi-step processes with multiple tools, guided by user instructions; and advanced tasks which involve multi-step processes that require multiple tools but not guided by user instructions, necessitating the agent to independently decide on and executes the necessary steps. The evaluation reveals that the GIS Copilot demonstrates strong potential in automating foundational GIS operations, with a high success rate in tool selection and code generation for basic and intermediate tasks, while challenges remain in achieving full autonomy for more complex tasks. This study contributes to the emerging vision of Autonomous GIS, providing a pathway for non-experts to engage with geospatial analysis with minimal prior expertise. While full autonomy is yet to be achieved, the GIS Copilot demonstrates significant potential for simplifying GIS workflows and enhancing decision-making processes.
Artificial Intelligence,Emerging Technologies
What problem does this paper attempt to address?
The main problem that this paper attempts to solve is the in - depth integration of generative artificial intelligence (Generative AI), especially large - language models (LLMs) such as GPT - 4, with existing geographic information system (GIS) platforms (such as QGIS). Although generative AI has shown great potential in spatial analysis, its integration with mature GIS platforms is still in the preliminary exploration stage. Specifically, the research aims to: 1. **Design a framework**: Directly integrate LLMs into existing GIS platforms, and use the reasoning and programming capabilities of these models to automatically generate spatial analysis workflows and code. 2. **Develop the "GIS Copilot" plug - in**: Interact with users through natural - language commands to simplify spatial analysis tasks in QGIS. 3. **Improve the accessibility for non - professional users**: Enable users without GIS expertise to easily perform complex geospatial analysis tasks. 4. **Achieve a certain degree of automation**: Especially for basic and intermediate tasks, reducing the need for human intervention. ### Core contributions of the paper 1. **Propose a general and extensible framework**: For integrating LLMs into existing GIS platforms, laying the foundation for future autonomous GIS research. 2. **Enhance the accessibility and application range of GIS**: Through natural - language interaction, enabling non - professional users to conduct geospatial analysis as well. 3. **Directly integrate into mature GIS software for the first time**: Although full autonomy has not been achieved yet, it has significantly promoted the automation process of complex geospatial tasks. ### Main challenges - **Complexity of GIS platforms**: Supporting a wide range of functions and tools, and needing to handle multiple data standards and programming languages. - **Seamless communication between AI and GIS functions**: Ensuring that natural - language queries can be accurately converted into GIS commands and are compatible with existing tools. - **Adaptability of customized workflows**: Handling highly customized GIS workflows while maintaining flexibility to meet different user needs. Through these efforts, this research not only promotes the development of autonomous GIS, but also provides an important reference direction for future research.