chore: 清理旧文档并修正代码检查问题

删除根目录旧版 XYZ 统计 PRD(以 xyzserver/docs/PRD.md 为准),aidocs 移出版本库;
楼宇 GPKG 读取坐标系后关闭连接,去掉无用导入,README 按当前图层顺序和默认勾选更新。
This commit is contained in:
nixevol
2026-10-15 10:38:32 +08:00
parent dda408bc6a
commit f6f241b3bd
10 changed files with 30 additions and 528 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import sqlite3
from shapely import from_wkb, from_wkt, make_valid, to_wkb
from shapely.errors import GEOSException
from shapely.geometry import MultiPolygon, Polygon
from shapely.geometry import MultiPolygon
from . import gpkg
+3 -1
View File
@@ -4,6 +4,8 @@ import sqlite3
from pathlib import Path
from shapely import wkt, to_wkb
from .gpkg import open_read_connection
DROP_COLUMNS = {"输入行号", "查询状态", "错误信息"}
LAYER_NAME = "NRBuildingsData"
GEOM_COLUMN = "geom"
@@ -68,7 +70,7 @@ def build_gpkg(data_csv, polygon_csv, output_path):
crs = CRS84
building_info = Path(__file__).resolve().parents[1] / "source" / "BuildingInfo.gpkg"
if building_info.is_file():
with sqlite3.connect(building_info) as source:
with open_read_connection(building_info) as source:
crs = source.execute(
"select srs_name, srs_id, organization, organization_coordsys_id, definition, description "
"from gpkg_spatial_ref_sys where srs_id = ?", (SRS_ID,),