← 返回
未分类
shapefile
Inspect, explain, validate, and convert ESRI Shapefile datasets, including `.shp/.shx/.dbf/.prj` sidecar requirements, CRS detection, field-name/type limits,...
检查、说明、验证及转换ESRI Shapefile数据集,涵盖.shp/.shx/.dbf/.prj配套文件要求、坐标系探测及字段名称/类型限制等。
未分类
clawhub
v1.0.0 1 版本 100000 Key: 无需
#latest
概述
Shapefile
Use this skill for practical Shapefile handling, debugging, and migration planning.
Workflow
- Confirm whether the task is inspection, repair, conversion, schema explanation, or batch cleanup.
- Identify which companion files are present:
.shp, .shx, .dbf, .prj, and optionally .cpg. - Check CRS, encoding, geometry type, and field-name limits before suggesting edits or conversions.
- Prefer writing outputs to a new path; avoid in-place mutation unless the user explicitly asks.
- 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.
版本历史
共 1 个版本
-
v1.0.0
当前
2026-03-31 02:56 安全 安全
安全检测
腾讯云安全 (Sanbu)
安全,无风险
查看报告
🔗 相关推荐
data-analysis
ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 214
📥 71,119
office-efficiency
jvy
面向中国用户的WPS Office工作流:创建、编辑、审阅、转换及排查.docx/.xlsx/.pptx及WPS格式的文字/表格/演示文档。
★ 55
📥 25,646
data-analysis
jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 276
📥 101,334