cognis-digital/geoaoi-pro

GitHub: cognis-digital/geoaoi-pro

一款 QGIS 兼容的军事符号(MIL-STD-2525/APP-6)与 AOI 坐标验证工具,用于在 CI 流水线中自动检测地理空间数据错误并输出合规审计报告。

Stars: 0 | Forks: 0

# geoaoi-pro — 适用于 QGIS 的 MIL-STD-2525 + APP-6 辅助工具 [![CI](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/6c7dcd2434073156.svg)](https://github.com/cognis-digital/geoaoi-pro/actions) [![Classification](https://img.shields.io/badge/classification-UNCLASSIFIED-green.svg)](./UPSTREAM.md) ## 使用说明 — 逐步指南 `geoaoi-pro` 会对您输入文件中的 MIL-STD-2525 / APP-6 符号代码 (SIDC) 和 AOI 坐标几何进行验证,并输出检查结果。 1. **安装:** pip install cognis-geoaoi-pro # 或者:pip install -e . geoaoi-pro --version 2. **运行扫描**,扫描包含符号/AOI JSON 文件的目录(`target` 默认为 `.`): geoaoi-pro ./overlays --format console 3. **生成 JSON** 供工具使用并将其写入磁盘(支持的格式:`console`、`json`、`markdown`、`sarif`、`oscal`): geoaoi-pro ./overlays --format json --out sidic-findings.json 4. **读取结果** — 检查结果会标记缺失的 SIDC (`GP-NOSIDC-*`)、格式错误的 SIDC (`GP-BADSIDC-*`) 以及错误的坐标 (`GP-COORDS-*`),每一项都带有严重级别: jq '.findings[] | {id, severity, location}' sidic-findings.json 5. **在 CI 中设置门禁** — 遇到高严重级别的符号错误时让构建失败: geoaoi-pro ./overlays --format sarif --out geoaoi.sarif --fail-on high ## 上游 分叉/包装自 **https://github.com/qgis/QGIS**。请参阅 [`UPSTREAM.md`](./UPSTREAM.md) 了解 许可证声明、支持的提交以及如何升级。 ## 针对军事/情报界 (IC) 的额外功能 - MIL-STD-2525C 符号代码验证(15 字符 SIDC) - APP-6 归属/方案字典 - AOI bbox + haversine 辅助函数 - GeoJSON 图层审计器 ## 安装说明 ``` # 共享库(整个 ecosystem 仅需一次): pip install -e ../../shared # 此工具: pip install -e . ``` ## 演示 ``` geoaoi-pro demos/ ``` 输出提供五种格式 — 所有格式均遵循操作员提供的 密级横幅(通过 `--classification` 传递): ``` geoaoi-pro --format=console # default geoaoi-pro --format=json geoaoi-pro --format=sarif # for code-scanning pipelines geoaoi-pro --format=markdown # for PRs / briefings geoaoi-pro --format=oscal # OSCAL Assessment Results skeleton ``` ## 密级横幅 所有输出均由操作员提供的密级横幅包装。 **默认值**:`UNCLASSIFIED//FOR PUBLIC RELEASE`。 ## 合规性映射(内置) 每项检查结果都可包含对以下标准的引用: - **NIST 800-53 Rev 5** 控制措施(例如 `AC-2(1)`) - **DISA STIG** 规则 ID(例如 `V-242414`) - **MITRE ATT&CK** 技术 ID(例如 `T1078`) - **CCI**(控制关联标识符) 这些内容会输出到 JSON、SARIF 和 OSCAL 骨架中。 ## CI / RMF 集成 ``` - name: geoaoi-pro scan run: | pip install cognis-geoaoi-pro geoaoi-pro . --format=oscal --out=assessment-results.json --fail-on=high - name: Upload to eMASS/Xacta run: cognis-rmf-package import assessment-results.json ``` ## Cognis Digital 军事/情报界生态系统的一部分 12 个代码库。均为 MIT/Apache-2.0/GPL-3(根据上游)。除非另有说明,Cognis 的附加内容均为 Apache-2.0。 请参阅[主索引](../../MASTER-INDEX.md)。 ## 互操作性 `geoaoi-pro` 可与 300 多个工具组成的 Cognis 套件组合使用 — 采用 JSON 输入/输出以及共享的 兼容 OpenAI 的 `/v1` 主干。请参阅 **[INTEROP.md](INTEROP.md)** 了解 套件图谱、组合模式和参考技术栈。 ## 集成 通过 [`cognis-connect`](https://github.com/cognis-digital/cognis-connect) 将 `geoaoi-pro` 的检查结果转发至 STIX/MISP/Sigma/Splunk/Elastic/Slack/webhooks。请参阅 **[INTEGRATIONS.md](INTEGRATIONS.md)**。
标签:QGIS, 军事符号系统, 地理信息系统, 数据校验, 文档结构分析, 空间几何计算, 逆向工具