下载安装

一分钟上手 GIS Actions

环境要求

安装

Linux (Debian/Ubuntu) — 一键安装

curl -sLO https://packages.mercator.cn/public/gis-actions/latest.deb && sudo dpkg -i latest.deb

macOS / 其他 Linux — Docker 运行

macOS 暂不支持原生安装,可通过 Docker 直接运行:

docker run --rm -v /tmp:/tmp mercator/gis-actions:latest agc run /tmp/output --suite-id <suite-id>

Windows — WSL 方案

Windows 暂不支持原生安装,推荐使用 WSL2 (Ubuntu):

  1. 安装 WSL2:wsl --install -d Ubuntu
  2. 在 WSL 终端中执行上方 Linux 安装命令
  3. 安装 Docker Desktop for Windows 并启用 WSL 集成
# 在 WSL 中执行 curl -sLO https://packages.mercator.cn/public/gis-actions/latest.deb && sudo dpkg -i latest.deb

快速开始

1. 配置 API Key

登录 Auth Center 生成 API Key,然后配置到本地:

agc config set api-key mk_xxx...

2. 环境诊断

检查环境是否就绪:

agc doctor

3. 搜索套件

从套件市场搜索 GIS 分析工具:

agc search parcel

4. 运行套件

在本地 Docker 中执行分析:

agc run /tmp/output --suite-id parcel-analysis --input buffer_distance=0.5

提示: agc 所有操作都在本地 Docker 容器中隔离执行,数据不会离开你的机器。