数据分析

shapefile

试用

Inspect, explain, validate, and convert ESRI Shapefile datasets, including `.shp/.shx/.dbf/.prj` sidecar requirements, CRS detection, field-name/type limits,...

它能做什么

Use this skill for practical Shapefile handling, debugging, and migration planning.

技能文档

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.

相关技能

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

执行 Git 操作(提交、分支、合并、变基、冲突解决与恢复)时强制套用安全规则。

作者 Iván535 次安装31 星标

jvy 的更多技能

浏览全部技能

面向中文办公场景的 WPS 文档、表格与演示处理及格式兼容。

作者 jvy142 次安装4 星标

Create Apache ECharts option JSON, standalone HTML chart pages, and export-ready chart artifacts from CSV, TSV, JSON tables, or existing option configs. Use...

作者 jvy23 次安装

Gitee operations via OpenAPI and git: repositories, pull requests, issues, comments, and file contents. Use when: (1) inspecting or creating Gitee pull reque...

作者 jvy36 次安装1 星标

Write, explain, adapt, and debug practical shader code for GLSL, WebGL, Three.js ShaderMaterial, React Three Fiber, postprocess-style full-screen effects, an...

作者 jvy24 次安装1 星标

Build, debug, and integrate OpenLayers web maps, including map/view setup, XYZ and OSM base layers, vector sources, GeoJSON overlays, Web Mercator and WGS84...

作者 jvy17 次安装

Research public holidays, bank holidays, observed days, school breaks, and make-up workdays for any country or region. Use when the user asks whether a speci...

作者 jvy18 次安装