The Spatial Analysis Agent is a plugin integration of an autonomous GIS agent for spatial analysis and QGIS. This plugin leverages QGIS processing tools to perfom spatial analysis within QGIS.
- 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
The User Manual is available here
Note: API keys input here will only be stored locally on the user's computer ('plugin_dir/SpatialAnalysisAgent/config.ini').
Find some usage example on the Data Request Examples page
openaiQSwitchControlnest-asyncio
Note: You may need to install some other python libraries that may not be present in your QGIS environment. Follow the steps below to install the libraries mentioned or others
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'])

