← 返回 Skills 市场
148
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install coord-transform
功能描述
坐标转换技能。当用户提到坐标转换、坐标系转换、EPSG转换、CGCS2000、WGS84、地理坐标转换、投影坐标转换、火星坐标系、百度坐标转换时激活。支持GeoJSON文件和WKT字符串的坐标系统转换,支持中国常用坐标系互转。
使用说明 (SKILL.md)
坐标转换技能 (coord-transform)
坐标系转换工具,支持 GeoJSON 和 WKT 格式,支持中国常用坐标系。
核心功能
- 格式互转:WKT ↔ GeoJSON 互转
- 坐标转换:支持各种坐标系之间的转换
- 中国坐标系:完整支持 CGCS2000、WGS84、火星坐标系(GCJ-02)、百度坐标系(BD-09)
支持的坐标系
| 代码 | 名称 | 说明 |
|---|---|---|
| 4326 | WGS84 | GPS 标准,地理坐标 |
| 4490 | CGCS2000 | 中国 2000 国家坐标系 |
| 4547-4556 | CGCS2000 分带 | 3 度分带投影坐标系 |
| 3857 | Web Mercator | 互联网地图常用 |
| 4214 | Beijing 1954 | 北京 54 坐标系 |
| gcj02 | 火星坐标系 | 高德地图、腾讯地图使用 |
| bd09 | 百度坐标系 | 百度地图专属 |
依赖
apt-get install python3-pyproj
使用方式
基本语法
python3 scripts/coord_convert.py --input \x3C文件或字符串> --from \x3C源坐标系> --to \x3C目标坐标系> [--format \x3C输出格式>] [--output \x3C输出文件>]
参数说明
| 参数 | 说明 |
|---|---|
--input / -i |
输入文件路径或 GeoJSON/WKT 字符串 |
--wkt |
直接指定 WKT 字符串(覆盖 --input) |
--from / -f |
源坐标系 |
--to / -t |
目标坐标系 |
--format / -F |
输出格式:geojson / wkt / auto(默认 auto) |
--output / -o |
输出文件路径 |
--list-crs |
列出所有支持的坐标系 |
使用示例
1. 坐标系统转换
CGCS2000 (4490) → WGS84 (4326):
python3 scripts/coord_convert.py --wkt "POINT(113 23)" --from 4490 --to 4326
CGCS2000 (4490) → 投影坐标系 (4547):
python3 scripts/coord_convert.py --wkt "POLYGON((112.58 26.56,112.60 26.56,112.60 26.58,112.58 26.58,112.58 26.56))" --from 4490 --to 4547
2. WKT ↔ GeoJSON 格式互转
WKT 转 GeoJSON:
python3 scripts/coord_convert.py --wkt "POINT(113 23)" --from 4326 --to 4490 --format geojson
GeoJSON 转 WKT:
python3 scripts/coord_convert.py --input data.geojson --from 4490 --to 4326 --format wkt
3. 火星坐标系转换
WGS84 → 火星坐标系 (GCJ-02):
python3 scripts/coord_convert.py --wkt "POINT(113 23)" --from 4326 --to gcj02
火星坐标系 → WGS84:
python3 scripts/coord_convert.py --wkt "POINT(113 23)" --from gcj02 --to 4326
4. 百度坐标系转换
GCJ-02 → 百度坐标系 (BD-09):
python3 scripts/coord_convert.py --wkt "POINT(113 23)" --from gcj02 --to bd09
BD-09 → WGS84:
python3 scripts/coord_convert.py --wkt "POINT(113 23)" --from bd09 --to 4326
5. 完整流程示例
从百度坐标系的 GeoJSON 文件转换到 CGCS2000 投影坐标系:
python3 scripts/coord_convert.py --input baidu_data.geojson --from bd09 --to 4547 --output result.geojson
工作流程
- 解析输入(判断是 WKT 还是 GeoJSON)
- 解析源坐标系和目标坐标系
- 如果需要格式转换,先进行格式转换
- 使用合适的转换器(pyproj 或中国坐标转换算法)转换坐标
- 输出转换后的结果
输出格式
- GeoJSON 输入 → 默认输出 GeoJSON
- WKT 输入 → 默认输出 WKT
- 可用
--format参数强制指定输出格式
坐标系转换关系图
WGS84 (4326) ←→ GCJ-02 (火星坐标系) ←→ BD-09 (百度坐标系)
↑ ↑ ↑
└────────────────┼────────────────────┘
↓
CGCS2000 (4490)
↓
CGCS2000 分带 (4547-4556)
注意事项
- 火星坐标系和百度坐标系是中国特有的加密坐标系,无法直接用 pyproj 转换,使用内置算法
- WGS84 和 CGCS2000 在中国境内差异很小(通常 \x3C1米),实际使用中可互换
- 投影坐标系(如 4547)是平面坐标,单位为米,适用于工程测量
- 地理坐标系(如 4326)是经纬度,单位为度
安全使用建议
This skill appears to do what it says: convert between CRS/WKT/GeoJSON and handle China-specific GCJ-02/BD-09 transforms. Before installing or running: 1) Inspect the complete scripts/coord_convert.py file in the package (the report shows a truncated snippet — ensure the file is intact and syntactically correct). 2) Install pyproj from your OS package manager or a trusted source; apt-get will require sufficient privileges. 3) Run the tool on non-sensitive or sample data first to confirm behavior. 4) Because the tool reads and writes files, be cautious when pointing it at directories you don't want modified. If you want higher assurance, run it in a sandboxed environment (container/VM) and review the full source for any unexpected file/network operations before use.
功能分析
Type: OpenClaw Skill
Name: coord-transform
Version: 1.0.0
The coord-transform skill is a legitimate utility for converting geographic coordinates between various systems (WGS84, CGCS2000, GCJ-02, BD-09) and formats (GeoJSON, WKT). The Python script 'scripts/coord_convert.py' implements standard transformation algorithms and uses the 'pyproj' library without any hidden network calls, unauthorized file access, or obfuscated code. No malicious instructions or prompt-injection attempts were found in 'SKILL.md'.
能力评估
Purpose & Capability
Name/description describe coordinate/CRS conversions and the package contains a Python script that uses pyproj plus custom GCJ-02/BD-09 algorithms — these match the stated purpose. The only external dependency mentioned (python3-pyproj) is appropriate for reprojection tasks.
Instruction Scope
SKILL.md instructs running the included script, supplying WKT/GeoJSON input files or strings, and writing output files — all expected for this tool. The provided script parses and transforms coordinates and reads/writes files accordingly. Note: the file contents shown in the report are truncated/partial (visible syntax truncation near the end), so verify the full script in the package before running; the truncated snippet could indicate an incomplete or corrupted file rather than malicious behavior.
Install Mechanism
No automatic install spec is included (instruction-only install), and the only required installation instruction is 'apt-get install python3-pyproj', which is a standard system package for reprojection. There are no remote downloads or obscure installers in the metadata.
Credentials
The skill does not request any environment variables, credentials, or config paths. This is proportionate: coordinate conversion does not require secrets or external service tokens.
Persistence & Privilege
The skill does not request always:true, does not declare persistence or privileged system modifications, and can be invoked by users only. It does not attempt to modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install coord-transform - 安装完成后,直接呼叫该 Skill 的名称或使用
/coord-transform触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of coord-transform.
- Provides coordinate system conversion for GeoJSON and WKT formats, supporting major systems used in China (CGCS2000, WGS84, GCJ-02/火星, BD-09/百度, etc).
- Supports mutual conversion between WKT and GeoJSON.
- Includes command-line interface for specifying input data, source/target CRS, output format, and output file.
- Supports projection and geographic systems (e.g., WGS84 4326, CGCS2000 4490/4547-4556, Beijing 1954, GCJ-02, BD-09).
- Uses pyproj for standard transformations and built-in algorithms for encrypted Chinese coordinate systems.
- Includes help commands and full usage examples for typical conversions.
元数据
常见问题
Coord Transform 是什么?
坐标转换技能。当用户提到坐标转换、坐标系转换、EPSG转换、CGCS2000、WGS84、地理坐标转换、投影坐标转换、火星坐标系、百度坐标转换时激活。支持GeoJSON文件和WKT字符串的坐标系统转换,支持中国常用坐标系互转。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 148 次。
如何安装 Coord Transform?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install coord-transform」即可一键安装,无需额外配置。
Coord Transform 是免费的吗?
是的,Coord Transform 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Coord Transform 支持哪些平台?
Coord Transform 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Coord Transform?
由 chenpipy(@chenpipy)开发并维护,当前版本 v1.0.0。
推荐 Skills