feat: 楼宇查询改为按轮廓 WKT 计算内部点查询
This commit is contained in:
@@ -50,11 +50,11 @@ class TaskIntegrationTest(unittest.TestCase):
|
||||
self.patch.start()
|
||||
self.addCleanup(self.patch.stop)
|
||||
self.addCleanup(self.temp.cleanup)
|
||||
self.input = self.root / "坐标.csv"
|
||||
self.input = self.root / "楼宇轮廓.csv"
|
||||
with self.input.open("w", encoding="utf-8-sig", newline="") as output:
|
||||
writer = csv.writer(output)
|
||||
writer.writerow(["序号", "经度", "维度"])
|
||||
writer.writerows((i, 112+i/1000, 22) for i in range(30))
|
||||
writer.writerow(["WKT", "building_id"])
|
||||
writer.writerows((box(112 + i / 1000, 22, 112 + i / 1000 + 0.0005, 22.0005).wkt, f"JM{i}") for i in range(30))
|
||||
self.params = {"INPUT_CSV": str(self.input), "INPUT_ENCODING": "utf-8-sig", "START_ROW": 1,
|
||||
"LIMIT": 30, "CONCURRENCY": 2, "TIMEOUT": 5, "MAX_RETRIES": 0, "REQUEST_INTERVAL": 0}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user