360 Secure SkillHub
360 安全技能中心

geoskill-interactive-webgis

读取本地 GeoTIFF 或 GeoJSON 点要素,或用 --synthetic 生成离线模拟数据,经双线性/最近邻查询与点密度聚合后,输出自包含的 Leaflet WebGIS HTML 应用(含图层开关与属性查询)以及 webgis_data.json、features.geojson、density.tif 等可验证产物。

ruiduobao
ruiduobao
热度 13.59
最近更新 2026-08-04 20:29:39
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add geoskill-interactive-webgis
Metadata
name
geoskill-interactive-webgis
description
Configure a lightweight WebGIS with query support as a self-contained HTML app

交互式WebGIS平台 | Interactive WebGIS Platform

Generates a self-contained lightweight WebGIS: Leaflet base map + rendered overlay layers + POI monitoring point layer + click-to-query (embedded downsampled raster JSON, browser-side nearest-neighbor elevation query) + layer toggle panel. No backend required.

The attribute query engine supports six operators — gt/lt/ge/le/eq/contains — and is unit-testable; it also aggregates point features into a density raster.

Core Algorithm / 核心算法

query_value_at bilinear point query + nearest_query nearest-neighbor → build_layer_config layer configuration → point_density_raster aggregation → Leaflet + embedded GRID assembly.

Dependencies / 依赖

pip install numpy rasterio scipy matplotlib geopandas shapely pillow

Usage / 使用方法

Example 1 (synthetic data, offline)

python geoskill-interactive-webgis.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out

Example 2 (attribute query)

python geoskill-interactive-webgis.py --input poi.geojson --query-field value --query-op gt --query-value 50

Example 3 (contains query)

python geoskill-interactive-webgis.py --input poi.geojson --query-field category --query-op contains --query-value school

Example 4 (synthetic 200 POIs)

python geoskill-interactive-webgis.py --bbox 116 39 117 40 --synthetic --n-points 200

Example 5 (custom color and title)

python geoskill-interactive-webgis.py --bbox 116 39 117 40 --synthetic --color "#e6550d" --title "urban facilities"

Output / 输出

File Format Description
webgis.html HTML WebGIS application (primary output)
webgis_data.json JSON Raster grid/sites/config (verifiable output)
features.geojson GeoJSON Point features
density.tif GeoTIFF Point density raster

Each run also produces output-manifest.json (run manifest).

Data Source / 数据源 / Source

Local GeoTIFF / vector files; --synthetic mode generates physically consistent simulated data, fully offline.

Privacy / 隐私声明 / Privacy

  • Runs offline by default; --synthetic mode requires no network at all.
  • All processing is done locally; no user data is uploaded.

License / License

MIT



name: geoskill-interactive-webgis description: 'Configure a lightweight WebGIS with query support as a self-contained HTML app'

交互式WebGIS平台 | Interactive WebGIS Platform

生成自包含轻量级 WebGIS:Leaflet 底图 + 渲染叠加层 + POI 监测点图层 + 点击即查(内嵌降采样栅格 JSON,浏览器端最近邻查询高程)+ 图层开关面板。无需后端。

属性查询引擎支持 gt/lt/ge/le/eq/contains 六种运算符,可单测;另把点要素聚合成密度栅格。

核心算法

query_value_at 双线性点查询 + nearest_query 最近邻 → build_layer_config 图层配置 → point_density_raster 聚合 → Leaflet+内嵌 GRID 组装。

依赖

pip install numpy rasterio scipy matplotlib geopandas shapely pillow

使用方法

示例 1(合成数据,离线)

python geoskill-interactive-webgis.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out

示例 2(属性查询)

python geoskill-interactive-webgis.py --input poi.geojson --query-field value --query-op gt --query-value 50

示例 3(contains 查询)

python geoskill-interactive-webgis.py --input poi.geojson --query-field category --query-op contains --query-value school

示例 4(合成 200 个 POI)

python geoskill-interactive-webgis.py --bbox 116 39 117 40 --synthetic --n-points 200

示例 5(自定义颜色与标题)

python geoskill-interactive-webgis.py --bbox 116 39 117 40 --synthetic --color "#e6550d" --title "城市设施"

输出

文件 格式 说明
webgis.html HTML WebGIS 应用(主产物)
webgis_data.json JSON 栅格网格/站点/配置(可验证产物)
features.geojson GeoJSON 点要素
density.tif GeoTIFF 点密度栅格

每次运行还会产出 output-manifest.json(运行清单)。

数据源 / Source

本地 GeoTIFF / 矢量文件;--synthetic 模式生成物理一致的模拟数据,完全离线。

隐私声明 / Privacy

  • 默认离线运行,--synthetic 模式完全无网络。
  • 所有处理在本地完成,不上传用户数据。

License

MIT