← 返回 Skills 市场
281
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gisransformcoords
功能描述
支持GeoJSON格式点线面数据在WGS84(经纬度)和Web Mercator(EPSG:3857)坐标系间批量转换,适用WebGIS和GPS数据处理。
使用说明 (SKILL.md)
GIS 坐标转换 Skill
快速转换点、线、面数据的坐标系:WGS84(经纬度)↔ Web Mercator(EPSG:3857)
快速开始
转换 GeoJSON 到墨卡托
python3 ~/.openclaw/workspace/skills/gis-coord-transform/scripts/transform_coords.py input.geojson -t mercator -o output.geojson --pretty
转换墨卡托回经纬度
python3 ~/.openclaw/workspace/skills/gis-coord-transform/scripts/transform_coords.py input.geojson -t wgs84 -o output.geojson --pretty
支持的几何类型
| 类型 | 说明 |
|---|---|
| Point | 点 |
| LineString | 线 |
| Polygon | 面 |
| MultiPoint | 多点 |
| MultiLineString | 多线 |
| MultiPolygon | 多面 |
| Feature | GeoJSON 要素 |
| FeatureCollection | 要素集合 |
命令行参数
| 参数 | 说明 |
|---|---|
input |
输入 GeoJSON 文件路径 |
-o, --output |
输出文件路径(默认输出到 stdout) |
-t, --to |
目标坐标系:mercator 或 wgs84 |
--pretty |
美化输出 JSON |
使用示例
示例 1:转换单个点
// input.geojson
{
"type": "Point",
"coordinates": [116.4074, 39.9042]
}
python3 scripts/transform_coords.py input.geojson -t mercator
输出(墨卡托坐标):
{
"type": "Point",
"coordinates": [12958396.7, 4865942.3]
}
示例 2:转换 FeatureCollection
python3 scripts/transform_coords.py cities.geojson -t mercator -o cities_mercator.geojson --pretty
示例 3:批量转换
for file in *.geojson; do
python3 scripts/transform_coords.py "$file" -t mercator -o "${file%.geojson}_mercator.geojson"
done
依赖安装
pip3 install pyproj
坐标系说明
| 坐标系 | EPSG 代码 | 用途 |
|---|---|---|
| WGS84 | EPSG:4326 | GPS、经纬度、地理坐标 |
| Web Mercator | EPSG:3857 | Web 地图(Google Maps、OpenStreetMap、Mapbox 等) |
常见问题
为什么转换后坐标数字变大了?
Web Mercator 使用米为单位,而 WGS84 使用度。墨卡托坐标通常在百万级别。
转换精度如何?
使用 pyproj 库,精度非常高,适合专业 GIS 应用。
支持其他坐标系吗?
当前版本仅支持 WGS84 ↔ Web Mercator。如需其他坐标系,可扩展 pyproj.Transformer。
扩展建议
需要添加其他坐标系转换时,修改脚本中的 Transformer 定义:
# 例如:WGS84 → CGCS2000 (EPSG:4490)
transformer = Transformer.from_crs("EPSG:4326", "EPSG:4490", always_xy=True)
相关文件
scripts/transform_coords.py- 坐标转换主脚本
安全使用建议
This skill appears to do exactly what it claims: convert GeoJSON geometries between WGS84 and Web Mercator. Before installing, note that it depends on the pyproj Python package (pip3 install pyproj). The script works on files you point it at and will write output where you specify — so make sure you run it on files you trust and choose an output path you control. If you prefer the skill not to run autonomously, disable autonomous invocation in the agent settings. There are no signs of network calls, hidden endpoints, or credential requests.
功能分析
Type: OpenClaw Skill
Name: gisransformcoords
Version: 1.0.0
The skill is a legitimate GIS utility designed to transform GeoJSON coordinates between WGS84 and Web Mercator. The primary script, `scripts/transform_coords.py`, uses the standard `pyproj` library for calculations and performs safe file I/O and JSON processing without any evidence of malicious execution, data exfiltration, or obfuscation. The documentation in `SKILL.md` provides clear, helpful instructions for the AI agent and lacks any prompt-injection attempts or suspicious commands.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the included Python script all describe and implement GeoJSON coordinate conversion between WGS84 and Web Mercator. Required tools (pyproj) are appropriate for the task; nothing unrelated (cloud credentials, other services) is requested.
Instruction Scope
SKILL.md instructs running the provided script on local GeoJSON files and shows example command-lines (including a path under ~/.openclaw/workspace/skills/... which matches normal skill placement). The runtime instructions do not ask the agent to read arbitrary unrelated files, environment variables, or contact external endpoints. Minor note: examples reference an absolute workspace path; this is informational and not a security concern.
Install Mechanism
No install spec is provided (instruction-only with an included script). Dependencies are limited to pyproj, and SKILL.md correctly instructs installing it via pip. No downloads from untrusted URLs or archive extraction are present.
Credentials
The skill requires no environment variables, credentials, or config paths. The script reads only the user-specified input file and writes the specified output — this is proportional to its purpose.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide changes. It can be invoked autonomously (platform default) but that is normal and not combined with broad privileges or credential access.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gisransformcoords - 安装完成后,直接呼叫该 Skill 的名称或使用
/gisransformcoords触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
去去去凄凄切切
元数据
常见问题
坐标转换 是什么?
支持GeoJSON格式点线面数据在WGS84(经纬度)和Web Mercator(EPSG:3857)坐标系间批量转换,适用WebGIS和GPS数据处理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 281 次。
如何安装 坐标转换?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gisransformcoords」即可一键安装,无需额外配置。
坐标转换 是免费的吗?
是的,坐标转换 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
坐标转换 支持哪些平台?
坐标转换 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 坐标转换?
由 pointGH(@pointgh)开发并维护,当前版本 v1.0.0。
推荐 Skills