SpatialAnalysisAgent
No description available
Install / Use
/learn @GIS-Copilot/SpatialAnalysisAgentREADME
SpatialAnalysisAgent
The Spatial Analysis Agent is a user-friendly plugin that serves as a "Copilot" in QGIS software. This GIS Copilot allows users to perform geospatial analysis directly within QGIS using natural language queries, making it accessible for both experts and beginners.
The Copilot leverages QGIS processing tools, and other external tools such as Python libraries (e.g., Geopandas, Rasterio, seaborn, etc.). Whether working with vector data, raster analysis, the Spatial Analysis Agent offers a flexible, AI-driven approach to enhance and automate GIS workflows.
QGIS Plugin page: https://plugins.qgis.org/plugins/SpatialAnalysisAgent-master/
Installation
- In QGIS software, select
Plugins>Manage and Install Plugins... - Find
AutonomousGIS-SpatialAnalysisAgentand clickInstall Plugin
Alternatively,
- Download the master repository of the plugin from GitHub
- Launch QGIS software and navigate to
Plugin > Manage and install Plugins.. > Install from ZIP - Click on
...to select the directory of the downloaded zip file andInstall plugin
User Manual
The User Manual is available here
Plugin Interface


Note: API keys input here will only be stored locally on the user's computer ('plugin_dir/SpatialAnalysisAgent/config.ini').
Demonstration
https://github.com/user-attachments/assets/4c69d024-22c4-4458-ad6f-9b660715aef9
https://github.com/user-attachments/assets/4b23eba4-3e99-47ec-85d6-6efb7ebb6b20
<a href="https://www.youtube.com/watch?v=1QbvKbWEgX0&t=8s" target="_blank"> <img src="https://img.youtube.com/vi/1QbvKbWEgX0/0.jpg" alt="YouTube Video" width="800"> </a>
<a href="https://youtu.be/wSEQILjgNWI&t=8s" target="_blank"> <img src="https://img.youtube.com/vi/wSEQILjgNWI/0.jpg" alt="YouTube Video" width="800"> </a>
<a href="https://youtu.be/rmKfJBOOm6E&t=8s" target="_blank"> <img src="https://img.youtube.com/vi/rmKfJBOOm6E/0.jpg" alt="YouTube Video" width="800"> </a> <a href="https://youtu.be/rhm_wAhPbRU&t=8s" target="_blank"> <img src="https://img.youtube.com/vi/rhm_wAhPbRU/0.jpg" alt="YouTube Video" width="800"> </a> <a href="https://youtu.be/MV2R5cEfpxg&t=8s" target="_blank"> <img src="https://img.youtube.com/vi/MV2R5cEfpxg/0.jpg" alt="YouTube Video" width="800"> </a>Find more examples on the Case Studies page
Installing required libraries
This plugin requires Python >= 3.11
Required python libraries
openailangchain_openainest-asyncionetworkxpyvisgeopandasIPythonifacejsonpickleregextomlseabornpydanticrasterio
Note: All the required python libraries are expected to be installed automatically. However, if any of these python libraries failed to install automatically, you may install them manually by following the steps below to install the libraries.
Libraries installation guide
Using 'openai' as an example, follow these steps to install any python library:
- Open the QGIS Python Console by navigating to
Plugins>Python Consoleor pressCtrl+Alt+P - In the console, run these two lines of code sequentially:
import pip pip.main(['install', 'openai'])
