Install
openclaw skills install @ruiduobao/geoskill-crs-transformation基于 pyproj 的 EPSG 坐标参考系转换,内置 WGS84 / GCJ02 / BD09 互转,支持点集与矢量要素。EPSG coordinate reference system transformation via pyproj with built-in WGS84 / GCJ02 / BD09 conversions for point sets and vector features.
openclaw skills install @ruiduobao/geoskill-crs-transformationTwo transformation paths:
Transformer (e.g., WGS84 4326 ↔ Web Mercator 3857, UTM
zones), supporting whole-layer reprojection and batch point-set conversion
with round-trip consistency.Suitable for GPS track correction, alignment with internet map coordinates,
and cross-CRS data registration. The --synthetic mode generates a random
point set within a bbox for offline demonstration.
pip install numpy rasterio geopandas shapely fiona pyproj
python geoskill-crs-transformation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-crs-transformation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --mode epsg --to-crs EPSG:3857 --output-dir ./mercator
python geoskill-crs-transformation.py --input sites.geojson --mode epsg --from-crs EPSG:4326 --to-crs EPSG:32650 --output-dir ./utm
python geoskill-crs-transformation.py --input gps_track.geojson --mode system --system-from wgs84 --system-to gcj02 --output-dir ./gcj
python geoskill-crs-transformation.py --input bd_pois.geojson --mode system --system-from bd09 --system-to wgs84 --output-dir ./wgs
python geoskill-crs-transformation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --mode system --system-from gcj02 --system-to bd09 --output-dir ./bd --quiet
| File | Format | Description |
|---|---|---|
transformed.geojson | GeoJSON | Transformed features |
transformation_report.json | JSON | Transformation parameters and sampled before/after coordinates |
output-manifest.json | JSON | Run manifest |
--input: local vector file (points/any geometry)--synthetic: random point set generated locally--synthetic mode requires no network at all.MIT
两条转换路径:
Transformer 在任意 EPSG 代码之间
严格转换(如 WGS84 4326 ↔ Web Mercator 3857、UTM 分带),支持整图层
重投影与点集批量转换,往返一致。适合 GPS 轨迹纠偏、互联网地图坐标对齐、跨坐标系数据配准。--synthetic
模式在 bbox 内生成随机点集做离线演示。
pip install numpy rasterio geopandas shapely fiona pyproj
python geoskill-crs-transformation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-crs-transformation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --mode epsg --to-crs EPSG:3857 --output-dir ./mercator
python geoskill-crs-transformation.py --input sites.geojson --mode epsg --from-crs EPSG:4326 --to-crs EPSG:32650 --output-dir ./utm
python geoskill-crs-transformation.py --input gps_track.geojson --mode system --system-from wgs84 --system-to gcj02 --output-dir ./gcj
python geoskill-crs-transformation.py --input bd_pois.geojson --mode system --system-from bd09 --system-to wgs84 --output-dir ./wgs
python geoskill-crs-transformation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --mode system --system-from gcj02 --system-to bd09 --output-dir ./bd --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
transformed.geojson | GeoJSON | 转换后的要素 |
transformation_report.json | JSON | 转换参数与抽样前后坐标 |
output-manifest.json | JSON | 运行清单 |
--input:本地矢量文件(点/任意几何)--synthetic:本地生成随机点集--synthetic 模式完全无网络。MIT