Coordinate Transform Skill for Openclaw

A specialized geospatial utility for converting coordinates between international and Chinese-specific coordinate systems in GeoJSON and WKT formats.

chenpipy
v1.0.0
Mar 20, 2026
0
872
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install coord-transform

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install coord-transform using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Coordinate Transform Skill?

The Coordinate Transform skill is a robust geospatial processing tool designed to handle the complexities of geographic and projected coordinate systems. It provides seamless interoperability between standard global systems like WGS84 and Web Mercator, and regional Chinese standards including CGCS2000, GCJ-02 (Mars Coordinates), and BD-09 (Baidu Coordinates).

This utility is a vital component of the Openclaw Skills ecosystem for developers working with GIS data, mapping APIs (like Amap, Tencent, or Baidu), and land survey records. It handles both file-based transformations and raw string manipulations, ensuring high precision for engineering and web mapping applications.

Coordinate Transform Skill Use Cases

  • Converting GPS data (WGS84) to Mars Coordinates (GCJ-02) for correct display on high-accuracy Chinese web maps.
  • Transforming raw survey data from CGCS2000 to local 3-degree zone projected coordinates for engineering measurements.
  • Batch processing GeoJSON files to change coordinate systems for cross-platform data integration.
  • Interchanging between WKT (Well-Known Text) and GeoJSON formats for database storage or frontend rendering.

How Coordinate Transform Skill Works

  1. The skill parses the input to identify the data structure, automatically detecting whether it is a WKT string or a GeoJSON object.
  2. It analyzes the source (--from) and target (--to) coordinate reference systems (CRS) provided by the user.
  3. If a format change is requested, it performs the structural conversion between WKT and GeoJSON.
  4. The coordinate values are reprojected using either the pyproj engine (for standard EPSG codes) or specialized internal algorithms (for encrypted systems like GCJ-02 and BD-09).
  5. The transformed data is output as a string or saved to a specified file path.

Coordinate Transform Skill Setup

To use this within the Openclaw Skills environment, ensure you have the necessary Python dependencies installed on your system:

# Install the projection library
apt-get install python3-pyproj

Basic command structure:

python3 scripts/coord_convert.py --input <file_or_string> --from <source_crs> --to <target_crs>

Coordinate Transform Skill Data Schema & Taxonomy

The skill manages geospatial data types with the following schema characteristics:

Feature Supported Formats / Taxonomy
Input Types GeoJSON files, WKT strings, GeoJSON strings
Geographic CRS WGS84 (4326), CGCS2000 (4490), Beijing 1954 (4214), GCJ-02, BD-09
Projected CRS Web Mercator (3857), CGCS2000 3-degree zones (4547-4556)
Output Formats .geojson, .wkt, or console output

Coordinate Transform Skill Advanced Features

  • Support for 3-degree zone projections (EPSG 4547-4556) specifically used in high-precision Chinese surveying.
  • Automatic format detection that preserves the input structure (GeoJSON to GeoJSON) unless overridden by the user.
  • Built-in offset algorithms for non-linear transformations between WGS84 and encrypted Chinese coordinate systems (GCJ-02/BD-09).
  • Capability to list all supported Coordinate Reference Systems directly via the CLI using the --list-crs flag.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*