# ArcGIS AI Assistant
A powerful GIS assistant application that combines ArcGIS Pro capabilities with AI to help with GIS tasks. This application leverages the ArcGIS Pro Python environment and integrates with Google's Gemini API to provide an intelligent assistant for GIS operations.
## Overview
The ArcGIS AI Assistant helps GIS professionals and analysts by:
- Providing a chat interface to interact with GIS data and tools
- Automating common GIS workflows
- Assisting with spatial analysis tasks
- Managing workspaces and directories
- Integrating with external data sources
## Prerequisites
- ArcGIS Pro 3.x installed (with its native conda environment)
- Python 3.11 (included with ArcGIS Pro)
- ArcPy 3.4 (included with ArcGIS Pro)
- Windows 10/11 operating system
- Google Gemini API key (required)
- Tavily API key (optional, for web search functionality)
- NASA Earthdata credentials (optional, for Landsat data download)
## Environment Setup
This project requires the ArcGIS Pro Python environment. We provide an automated setup script:
1. Run the provided setup script:
```
setup_environment.bat
```
2. Follow the on-screen instructions
For detailed environment setup instructions, see [ENVIRONMENT_SETUP.md](ENVIRONMENT_SETUP.md).
## Configuration
### API Keys Setup
The ArcGIS AI Assistant requires several API keys for full functionality:
### Required API Keys:
- **Google Gemini API Key**: Required for the AI functionality
1. Go to https://ai.google.dev/
2. Sign in with your Google account
3. Create a new API key or use an existing one
4. Copy the API key to your `.env` file
### Optional API Keys:
- **Tavily API Key**: For enhanced web search capabilities
1. Go to https://tavily.com/
2. Sign up for an account
3. Create a new API key
4. Copy the API key to your `.env` file
- **NASA Earthdata Credentials**: For downloading Landsat imagery
1. Go to https://urs.earthdata.nasa.gov/
2. Create an account
3. Go to your profile and generate a token
4. Copy your username, password, and token to your `.env` file
### Setting Up API Keys
1. Copy the `.env.template` file to `.env` in the `gis_agent_project` directory:
```
copy .env.template .env
```
2. Edit the `.env` file and add your API keys:
```
GEMINI_API_KEY=your_gemini_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here
EARTHDATA_USER=your_earthdata_username
EARTHDATA_PASS=your_earthdata_password
EARTHDATA_TOKEN=your_earthdata_token
```
3. Alternatively, you can add API keys directly through the application's Environment tab.
### Workspace Configuration
The application uses a workspace directory for storing and accessing GIS data. By default, it will use the current directory, but you can configure a specific workspace in the settings.
1. The workspace can be set in the `settings.json` file
2. You can also set the workspace through the application's Environment tab
3. Make sure the workspace directory exists and is accessible
## Running the Application
1. Activate your environment (if using a clone):
```
conda activate arcgis_llm
```
2. Navigate to the project directory:
```
cd path\to\ArcGIS_AI\gis_agent_project
```
3. Run the application:
```
python main.py
```
## Features
- **Chat Interface**: Interact with the GIS AI assistant using natural language
- **Environment Management**: Configure workspace and directories
- **API Key Management**: Securely store and manage API keys through the GUI
- **Directory Scanning**: Automatically scan directories for GIS files
- **GIS Tools Integration**: Access to a wide range of ArcGIS tools and functions
- **Data Visualization**: View and analyze GIS data
- **Spatial Analysis**: Perform complex spatial analysis tasks
- **Data Download**: Download external data sources like Landsat imagery
## Settings
The application stores settings in a `settings.json` file located in the `gis_agent_project` directory. This includes:
- Workspace location
- Watched directories
- API keys (securely stored)
You can modify these settings directly through the application's interface.
## Troubleshooting
### API Key Issues
1. Check that your `.env` file is properly formatted and located in the `gis_agent_project` directory
2. You can also enter API keys directly in the Environment tab of the application
3. Ensure you have the necessary permissions for the workspace directory
### Environment Issues
1. Make sure ArcGIS Pro is properly installed
2. Verify that the conda environment has access to the `arcpy` package (version 3.4)
3. Check that all dependencies are installed correctly with the versions specified in requirements.txt
4. If using a cloned environment, ensure it was created from the ArcGIS Pro base environment
5. If you encounter issues with the setup scripts, try the manual setup process
6. For detailed environment troubleshooting, see [ENVIRONMENT_SETUP.md](ENVIRONMENT_SETUP.md)
### Workspace Issues
1. Ensure the workspace directory exists and is accessible
2. Check that you have write permissions for the workspace directory
3. Verify that the workspace path is correctly specified in the settings
## Contributing
Contributions to this project are welcome. Please follow these steps:
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Submit a pull request
## License
This project is licensed under the MIT License - see the LICENSE file for details.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
一个功能强大的 GIS 助手应用程序,它将 ArcGIS Pro 功能与 AI 相结合,以帮助完成 GIS 任务。此应用程序利用 ArcGIS Pro Python 环境并与 Google 的 Gemini API 集成,为 GIS作提供智能助手。 链接: https://github.com/korporalK/Archer-GIS-AI-Assitant ArcGIS AI Assistant 通过以下方式为 GIS 专业人员和分析师提供帮助: 提供与 GIS 数据和工具交互的聊天界面 自动化常见的 GIS 工作流 协助执行空间分析任务 管理工作区和目录 与外部数据源集成
资源推荐
资源详情
资源评论



























收起资源包目录



































































































共 71 条
- 1
资源评论


Z_W_H_

- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 数据挖掘与决策支持分析报告.pptx
- 基于51单片机的温度控制系统.doc
- 网络服务器系统改造方案.doc
- 嵌入式课程设计电子词典硬件设计样本.doc
- 综合布线施工方案.pptx
- 任务13STC89C52单片机的初步认识.doc
- 基因工程dna重组技术的基本工具.pptx
- 汽车网络营销方案.doc
- 对软件研发过程中用户需求研发设计项目测试交付实施测试等流程监督管理.doc
- 第7章-数字带通传输系统-东南大学通信原理课件.ppt
- 河南省开封十七中初中信息技术《4.1规划网站》课件.ppt
- 工资管理系统的设计与实现数据库原理与应用课程设计报告.doc
- 数字城市通信管网项目宣传片策划案.doc
- 基于AVR单片机的角度测量系统研究.doc
- 医院网络整合营销解决方案.pptx
- 基于单片机的OLED屏幕显示电子秤.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
