Files
MemRelay/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/独立 GetNRBuildingsData 脚本和小批量验证要求.md
T

21 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 独立 GetNRBuildingsData 脚本和小批量验证要求
type: decision
permalink: main/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/独立-get-nrbuildings-data-脚本和小批量验证要求
stable_id: 8e2f261c-0e5a-4403-8c3a-ecc1dc1b23cf
scope: project
project_id: 8e229c96-a83b-4a02-ac40-10a0a9da444e
memory_type: decision
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T15:02:14.857833+00:00'
updated_at: '2026-09-23T15:02:14.857899+00:00'
tags:
- wfs
- python
- csv
- standalone
---
用户要求独立GetNRBuildingsData.py批量调用楼宇WFS,不接入main.py。URL和COOKIES等参数必须放顶部供用户手动填写,本次源码保持空值;复用凭证已仅存密码库条目“NQI WFS 楼宇数据查询”(lookup_key nqi-gmcc-building-wfs),普通记忆和Git禁止保存实际凭证。输入source/NRBuildingsPoint.csv为GBK/GB18030,列名序号、经度、维度(源文件实际是维度),共435327条。按CSV原始坐标构造POINT(经度 纬度),通过urlencode百分号编码,禁止用逗号分隔经纬度。输出所有properties原字段为CSV表头,附查询序号/坐标/状态/命中数量/要素ID/错误信息;多命中逐楼宇输出,未命中保留状态行,不擅自调整接口指标字段名或数值。默认LIMIT=10,START_ROW=1;URL/Cookies由用户自己填,确认后LIMIT=None可全量。只用Python标准库,支持超时/有限网络重试、认证失败停止、Ctrl+C保留完成结果,临时磁盘缓冲合并动态表头避免全量内存增长。仅做10个真实坐标请求,取源表前9条及JM443411坐标,7命中/3未命中/0失败,结果在output/NRBuildingsData_test10.csv,10行43列(7查询列+36个properties字段)。未运行全量。