跳到正文
Skillpedia
分析与电子表格5.1k · #15111

omh-geospatial-analysis

它能做什么

它对两个地理图层做相交计算,检查坐标系和几何形状,并报告测得的重叠面积以及可复现的输出文件。适合处理地图数据的分析人员。

适用场景

  • ✓当你需要找出两个地图图层的重叠位置时。
  • ✓当你想测量两个地理数据集之间的重叠面积时。
  • ✓当你需要一个可以通过已保存的输出文件复现的结果时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-geospatial-analysis/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-geospatial-analysis/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在米制坐标系中对这两个 GeoJSON 图层做相交计算,并算出重叠面积。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体检查图层的坐标系和几何形状,在米制投影下运行叠加,并把结果连同测得的面积保存为 GeoJSON。对于缺失的坐标系,它拒绝猜测。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Geospatial Analysis

This is an OMH geospatial-analysis workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

Polygon computations can return plausible but wrong numbers when CRS, coordinate units or geometry are invalid. This skill couples fail-closed checks to a runnable optional overlay producer and inspectable replay artifacts.

First Steps

  • Read toolkit/README.md and references/execution-and-qa.md before executing toolkit/scripts/analyze.py; installation and skill discovery never run it.
  • Confirm the two layers, explicit EPSG declarations, study extent, projected metre CRS, output directory and finite host timeout; never guess a missing CRS.
  • Use the original synthetic rectangle fixture only for backend QA; do not describe it as a public flood, facility or site-suitability finding.

Do Not Use When

  • The task only aggregates supplied tables or charts without coordinate computation; use omh-data-analysis.
  • The task only needs source discovery or an explanation from documentation; use omh-web-research.
  • The task is connecting a generic tool server, not executing a domain calculation; use Hermes' native MCP configuration guidance.

Examples

Good example:

  • Prompt: Intersect these two GeoJSON layers in a metric CRS and compute overlap area.
  • Expected behavior: Require authoritative source CRS, validate geometry, execute real intersection, then inspect result GeoJSON, measured summary and replay manifest.
  • Why: A spatial computation has measurable geometry and units rather than a report-only output.

Bad example:

  • Prompt: Explain the map metaphor in this essay and plot the existing CSV totals.
  • Expected behavior: Answer the writing question or use data-analysis for the table; do not run a spatial backend.
  • Why: Map vocabulary alone does not establish a coordinate computation.

Completion Checklist

  • Source declarations and metric target are explicit; invalid geometry is rejected, not silently repaired.
  • The actual backend command and exit were observed; output GeoJSON, summary and manifest were read back and hashed, or the blocker is stated.
  • Pair sums versus union area, projected measurement limits and synthetic versus public-world evidence remain distinct.

Recovery Notes

  • If CRS is missing, stop and ask for the authoritative declaration; do not assign one based on numeric range.
  • If dependencies are missing, return a nonzero failure and an explicit optional-environment setup recipe; never synthesize outputs.
  • If geometry is invalid, report the failing layer and request approved preprocessing before rerunning; if output already exists, choose a new directory.

When to Use

Use when supplied polygon layers need actual intersection and measured overlap, not a narrative report or a decorative map.

Strong routing signals: `geospatial-analysis`, `geospatial overlay`, `spatial intersection`, `intersect geojson layers`, `compute overlap area`

Catalog Metadata

Category: analysis Phase: spatial-computation Quality tier: execution-evidence-gated Reasoning demand: heavy

Quality bar:

  • Require finite 2D polygon geometry, explicit CRS and projected metre axes before measuring.
  • Record the real backend, exact versions, command, exit and output hashes; do not call direct libraries GIS-MCP.
  • Verify synthetic fixture count and area independently, and never generalize fixture numbers to public-world risk.

Required inputs:

  • input and overlay polygon layers
  • explicit source and metric target CRS
  • new output directory and execution budget

Expert clarification questions:

  • input and overlay polygon layers
    • English: Which two polygon layers, source permissions, and study extent define the overlap question?
    • Korean: Which two polygon layers, source permissions, and study extent define the overlap question?

Expected outputs:

  • result GeoJSON
  • measured summary JSON
  • replay and provenance manifest

Artifact expectations:

  • Actual result.geojson in longitude/latitude OGC:CRS84; each positive-area pair carries source indices, original namespaced properties, area_m2 and perimeter_m.
  • Authored geospatial_summary/v1 in summary.json: result count, touch-only count, measurement CRS, pair sums, unique union area and explicit limitations.
  • Authored geospatial_manifest/v1 in manifest.json: input/output hashes, actual direct backend versions, settings, timestamp, script dige
常见问题

它会猜测坐标系吗?

不会。该技能要求明确声明坐标系,如果缺失就会停止运行。

示例数据是真实的研究吗?

不是。该技能说明其内置的矩形示例是模拟数据,不是真实发现。

它只能解释地图概念吗?

可以,但要进行计算,需要提供图层和坐标细节。

详情

作者的原始描述

[omh] Spatial layers to intersect: execute CRS-safe polygon overlay with measured areas, validated geometry and reproducible GeoJSON outputs. Use when the user says: geospatial-analysis, geospatial overlay, spatial intersection, intersect geojson layers, compute overlap area.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15111
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能