返回顶部
s

shp

Inspect, explain, validate, and convert ESRI Shapefile datasets, including `.shp/.shx/.dbf/.prj` sidecar requirements, CRS detection, field-name/type limits, encoding problems, multipart geometry issues, and migration guidance to GeoPackage or GeoJSON. Use when the user asks about shapefile, Shapefile, `.shp` files, DBF encoding, PRJ/CRS problems, or batch shapefile cleanup. 中文触发:shapefile、shp、dbf、prj、坐标系丢失、字段截断、编码乱码。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
104
下载量
0
收藏
概述
安装方式
版本历史

shp

# Shapefile Use this skill for practical Shapefile handling, debugging, and migration planning. ## Workflow 1. Confirm whether the task is inspection, repair, conversion, schema explanation, or batch cleanup. 2. Identify which companion files are present: `.shp`, `.shx`, `.dbf`, `.prj`, and optionally `.cpg`. 3. Check CRS, encoding, geometry type, and field-name limits before suggesting edits or conversions. 4. Prefer writing outputs to a new path; avoid in-place mutation unless the user explicitly asks. 5. If the dataset is large or the workflow is repeated, prefer a deterministic CLI path through `qgis`. ## Core Rules - Treat a Shapefile as a multi-file dataset, not a single `.shp` file. - Missing `.shx` or `.dbf` usually means the dataset is incomplete. - Missing `.prj` means CRS is unknown, not automatically WGS84. - DBF field names are short and legacy-oriented; watch for truncation and type loss. - Text encoding may depend on `.cpg`; without it, non-ASCII text can decode incorrectly. - Shapefile is poor for long field names, rich types, large text, and modern metadata needs. ## Common Failure Checks - File opens but attributes are broken: verify `.dbf` exists and encoding is correct. - Features draw in the wrong place: verify `.prj` exists and the CRS was not guessed incorrectly. - Import succeeds but schema looks wrong: check field-name truncation and DBF type limitations. - Multipart or invalid geometry surprises: inspect geometry type before conversion or editing. - One file was copied alone: remind that the full sidecar set must travel together. ## Preferred Outcomes - For interchange with legacy systems, preserve the Shapefile but document its CRS and encoding explicitly. - For ongoing editing or richer schema, migrate to `GPKG`. - For lightweight web interchange, convert to `GeoJSON` only when the CRS and precision tradeoffs are acceptable. - For deterministic file conversion or batch fixes, hand off execution to `qgis`. ## Task Boundaries - Use this skill for Shapefile structure, limitations, troubleshooting, and migration guidance. - For general CRS selection, use `project` or `wgs84`. - For actual file-based conversion, reprojection, clipping, or repair commands, use `qgis`. - For web map rendering or tiles, use `mapbox` or `cesium` as appropriate. ## OpenClaw + ClawHub Notes - Keep examples generic and portable. - Do not hardcode private data paths, private datasets, or machine-specific environments. - For clawhub.ai publication, keep the skill concise, reproducible, and semver-friendly; keep detailed patterns in references. ## Reference Docs In This Skill - Read `{baseDir}/references/patterns.md` when you need concrete Shapefile validation, packaging, or conversion guidance.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 shapefile-1776112120 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 shapefile-1776112120 技能

通过命令行安装

skillhub install shapefile-1776112120

下载 Zip 包

⬇ 下载 shp v1.0.0

文件大小: 4.33 KB | 发布时间: 2026-4-14 10:14

v1.0.0 最新 2026-4-14 10:14
- Initial release of the shp skill for handling ESRI Shapefile datasets.
- Supports inspection, validation, and conversion, addressing sidecar file requirements, CRS detection, encoding, and schema limitations.
- Offers guidance on common failure cases and best practices for migrating to GeoPackage or GeoJSON.
- Helps identify and troubleshoot multipart geometry and field truncation issues.
- Provides workflow recommendations and directs users to appropriate tools or skills for complex operations.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部