Install
openclaw skills install @ruiduobao/geoskill-data-versioning对矢量数据做变更检测、版本快照与差异比较,支持 commit / diff / log 操作。Change detection, version snapshots and diff comparison for vector data with commit / diff / log operations.
openclaw skills install @ruiduobao/geoskill-data-versioningProvides lightweight version management for vector data, centered on "snapshot + change detection":
id), reporting added / removed / modified sets and field-level change details (including geometry-change flags).Change detection performs NaN-safe comparisons of attribute values and exact WKT matching for geometries. Suitable for data-update tracking, change auditing, and incremental distribution. --synthetic mode generates two states ("baseline + changes") and demonstrates the full commit → commit → diff → log workflow offline.
pip install numpy rasterio geopandas shapely fiona pyproj
python geoskill-data-versioning.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-data-versioning.py --bbox 116.0 39.0 117.0 40.0 --synthetic --features 30 --output-dir ./repo
python geoskill-data-versioning.py --input parcels.gpkg --message "initial import" --output-dir ./parcel_repo
python geoskill-data-versioning.py --input buildings.shp --key osm_id --message "2025 update" --output-dir ./bld_repo
python geoskill-data-versioning.py --bbox 121.0 31.0 122.0 32.0 --synthetic --author zhangsan --message "demo" --output-dir ./repo2
python geoskill-data-versioning.py --input roads.geojson --message "v1" --quiet --output-dir ./roads_repo
| File | Format | Description |
|---|---|---|
version_store/v{N}.geojson | GeoJSON | Snapshot of each version |
version_store/versions.json | JSON | Version log (tag/hash/timestamp/feature count) |
versioning_report.json | JSON | Version list + diff results |
output-manifest.json | JSON | Run manifest |
--input: local vector file--synthetic: locally generates two states, baseline + changes--synthetic mode requires no network at all.MIT
对矢量数据做轻量级版本管理,核心是“快照 + 变更检测”:
id)比较两个版本,给出 added / removed /
modified 集合与字段级变更明细(含几何变化标记)。变更检测对属性值做 NaN 安全比较,几何用 WKT 精确比对。适合数据更新追踪、
变更审计、增量分发。--synthetic 模式生成“基准 + 改动”两个状态,离线
演示完整的 commit → commit → diff → log 流程。
pip install numpy rasterio geopandas shapely fiona pyproj
python geoskill-data-versioning.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-data-versioning.py --bbox 116.0 39.0 117.0 40.0 --synthetic --features 30 --output-dir ./repo
python geoskill-data-versioning.py --input parcels.gpkg --message "initial import" --output-dir ./parcel_repo
python geoskill-data-versioning.py --input buildings.shp --key osm_id --message "2025 update" --output-dir ./bld_repo
python geoskill-data-versioning.py --bbox 121.0 31.0 122.0 32.0 --synthetic --author zhangsan --message "demo" --output-dir ./repo2
python geoskill-data-versioning.py --input roads.geojson --message "v1" --quiet --output-dir ./roads_repo
| 文件 | 格式 | 说明 |
|---|---|---|
version_store/v{N}.geojson | GeoJSON | 各版本快照 |
version_store/versions.json | JSON | 版本日志(tag/哈希/时间/要素数) |
versioning_report.json | JSON | 版本列表 + diff 结果 |
output-manifest.json | JSON | 运行清单 |
--input:本地矢量文件--synthetic:本地生成基准 + 改动两个状态--synthetic 模式完全无网络。MIT