Shapefile (SHP) Expert for Openclaw

A specialized toolset for inspecting, validating, and migrating ESRI Shapefile datasets while resolving common CRS and encoding errors.

jvy
v1.0.0
Mar 21, 2026
0
753
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install shapefile

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 shapefile 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 Shapefile (SHP) Expert?

The Shapefile skill is an essential utility within the Openclaw Skills ecosystem designed for developers and GIS professionals handling legacy spatial data. It provides a robust framework for managing the complex multi-file nature of the ESRI Shapefile format, ensuring that .shp, .shx, .dbf, and .prj components are correctly synchronized and validated.

Beyond simple file reading, this skill identifies critical failure points such as DBF field-name truncation, encoding mismatches in .cpg files, and missing coordinate reference systems. It acts as a technical bridge, guiding users from the limitations of legacy formats toward modern, high-performance standards like GeoPackage or GeoJSON.

Shapefile (SHP) Expert Use Cases

  • Validating incomplete datasets missing critical sidecar files like .shx or .prj.
  • Troubleshooting character encoding issues and broken attribute tables in .dbf files.
  • Automating the conversion of legacy Shapefiles to GeoPackage (GPKG) for modern GIS workflows.
  • Detecting and repairing multipart geometry issues or CRS mismatches.
  • Performing batch cleanup and schema validation for large-scale geospatial migrations.

How Shapefile (SHP) Expert Works

  1. The skill analyzes the dataset to confirm the presence of required sidecar files (.shp, .shx, .dbf, .prj).
  2. It performs a deep inspection of the schema, checking for field-name limits and geometry types.
  3. The system detects the Coordinate Reference System (CRS) and text encoding to prevent data corruption.
  4. A diagnostic report is generated identifying any truncation, invalid geometries, or missing metadata.
  5. Validated data is processed or migrated to a new path using deterministic CLI tools like QGIS to ensure data integrity.

Shapefile (SHP) Expert Setup

To integrate this skill into your workflow, ensure your environment has the necessary spatial libraries installed. You can initialize the skill via the Openclaw Skills interface or CLI:

# Install the necessary spatial utilities
sudo apt-get install qgis-python

# Add the Shapefile skill to your local agent
openclaw install skill shp

Shapefile (SHP) Expert Data Schema & Taxonomy

The skill treats Shapefiles as a unified dataset rather than isolated files. It organizes metadata and outputs according to the following taxonomy:

Component Function Requirement
.shp Feature geometry Mandatory
.shx Shape index position Mandatory
.dbf Attribute format (dBase) Mandatory
.prj Projection/CRS information Highly Recommended
.cpg Code page for character encoding Optional

It strictly adheres to DBF limitations, including the 10-character field name limit and specific data type constraints.

Shapefile (SHP) Expert Advanced Features

  • Automated migration pathways to GPKG for rich schema support and modern metadata.
  • Integration with QGIS for deterministic batch processing and complex geometry repairs.
  • Intelligent CRS detection to prevent the common 'WGS84 by default' guessing error.
  • Support for multi-agent protocols to hand off web map rendering tasks to Mapbox or Cesium after validation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*