feat: 楼宇查询连接信息本地保存并默认 GBK 编码

This commit is contained in:
nixevol
2026-09-17 09:32:34 +08:00
parent 48e68469ad
commit bbff3f7b5f
5 changed files with 45 additions and 17 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ COOKIES = "CASTGC=TGT-1071858-toWWSoGzu8ASDB-dF69kh7rTnxZHt1nWd45MsLeTt0lHrzWC8n
REFERER = "https://nqi.gmcc.net:20443/pro-problem-warehouse-web/"
INPUT_CSV = Path(__file__).resolve().parent / "source" / "NRBuildPolygon.csv"
OUTPUT_CSV = Path(__file__).resolve().parent / "output" / "NRBuildingsData.csv"
INPUT_ENCODING = "utf-8-sig" # 当前源文件为 UTF-8 BOM;GBK 文件可改为 gb18030。
INPUT_ENCODING = "gbk" # 默认 GBK;UTF-8 BOM 文件改为 utf-8-sig。
OUTPUT_ENCODING = "gbk" # 供 Excel/传统工具直接打开;无法编码的字符用 errors=replace。
ID_COLUMN = "building_id"
WKT_COLUMN = "WKT" # 楼宇轮廓,MULTIPOLYGON/POLYGON WKT,经纬度 EPSG:4326。