feat: 导入区上移工程模板并增加 4G Grid 配置
This commit is contained in:
@@ -169,6 +169,7 @@ class TaskIntegrationTest(unittest.TestCase):
|
||||
values.update(mro_total_yd=100, rsrp_lt_neg105_yd=10, ssb_rsrp_dl=-115, mro_total_dl=0)
|
||||
create_gpkg(self.root / "grid.gpkg", "grid", ','.join(f'"{f}" real' for f in fields),
|
||||
[(1, a, [values[f] for f in fields]), (2, b, [values[f] for f in fields])])
|
||||
create_gpkg(self.root / "grid4.gpkg", "grid4", '"grid20_id" text', [(1, a, ["g1"])])
|
||||
create_gpkg(self.root / "buildings.gpkg", "BuildingInfo", '"name" text,"floor" integer,"height" real', [(1, a, ["建筑甲", 2, 7.8]), (2, b, ["建筑乙", 3, 11.7])])
|
||||
from marketgrid.building_themes import THEMES, ACTIVE_THEMES
|
||||
nr_fields = list(dict.fromkeys(n for t in THEMES for n, _ in t["fields"] if n not in ("floor", "height")))
|
||||
@@ -181,6 +182,7 @@ class TaskIntegrationTest(unittest.TestCase):
|
||||
writer.writerow(["a", "甲AOI", box(112.002, 22.002, 112.008, 22.008).wkt, 40, 20, 30, 10, 50])
|
||||
writer.writerow(["b", "乙AOI", box(112.022, 22.002, 112.028, 22.008).wkt, 80, 10, 10, 0, 20])
|
||||
params = {"MARKET_GPKG": str(self.root / "markets.gpkg"), "GRID_5G_GPKG": str(self.root / "grid.gpkg"),
|
||||
"GRID_4G_GPKG": str(self.root / "grid4.gpkg"),
|
||||
"NR_BUILDINGS_DATA_GPKG": str(self.root / "nr.gpkg"),
|
||||
"BUILDING_INFO_GPKG": str(self.root / "buildings.gpkg"),
|
||||
"AOI_CSV": str(aoi_csv), "AOI_GPKG": str(self.root / "matched.gpkg"),
|
||||
|
||||
Reference in New Issue
Block a user