feat: 按市场网格拆分建筑信息

This commit is contained in:
RBP15P
2026-07-15 12:04:54 +08:00
parent 77a954e2ac
commit e38095bc60
2 changed files with 286 additions and 56 deletions
+5
View File
@@ -43,3 +43,8 @@
- 当前测试市场 `JM010404` 的 `mr_dl_lt105_weak_cover_rate_dl` 去重分位阈值为 `[30.43, 16.95, 9.47]`,输出验证为 889 种有效颜色加透明背景。
- 字段口径已切换为 DL:`信号.tif` 使用 `ssb_rsrp_dl`,`用户量.tif` 使用 `mro_total_dl`,`信号差用户量.tif` 使用 `rsrp_lt_neg105_dl`。
- 当前测试市场 `JM010404` 新字段阈值:`mro_total_dl` 为 `[2583.0, 1428.0, 871.0]`,`rsrp_lt_neg105_dl` 为 `[389.0, 219.0, 138.0]`。
- `main.py` 已重新纳入 `source/BuildingInfo.gpkg` 拆分流程,仍通过 `python main.py` 一次运行完成三张热力图和 BuildingInfo 拆分。
- BuildingInfo 输出路径为 `output/JMXXXX/BuildingInfo.gpkg`,匹配规则沿用 `intersects`:建筑面只要与市场网格相交或边界触碰,就会写入对应市场目录,几何和属性行保持原样不裁剪。
- BuildingInfo 拆分会复制源 GeoPackage 的 `layer_styles`、`gpkg_metadata`、`gpkg_metadata_reference`、`gpkg_extensions`、`gpkg_ogr_contents`、`gpkg_spatial_ref_sys` 等支撑表,并重建输出 RTree;避免复制依赖 SpatiaLite 函数的 RTree 触发器。
- `source/BuildingInfo.gpkg` 的图层 `srs_id` 为 `100000`(CRS84,经纬度坐标值可与市场网格相交判断),因此 `BUILDING_INFO_ALLOWED_SRS_IDS` 默认允许 `(4326, 100000)`。
- 当前测试市场 `JM010404` 已生成 `BuildingInfo.gpkg`,包含 9495 个建筑要素,RTree 和 `gpkg_ogr_contents.feature_count` 均为 9495;`layer_styles.styleQML` 与 `gpkg_metadata.metadata` 已验证与源文件完全一致。