Skip to content

Commit

Permalink
Merge pull request #223 from kartverket/test_WorkFileManager
Browse files Browse the repository at this point in the history
Test work file manager
  • Loading branch information
EllingOftedalKV authored Jan 14, 2025
2 parents aedf602 + 2c185c8 commit a3d137d
Show file tree
Hide file tree
Showing 4 changed files with 572 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ def barriers_for_rbc(self):
"false",
f"{self.railway_barrier_gap} Meters",
],
[
self.road_barrier_lyrx,
"false",
f"{self.road_barrier_gap} Meters",
],
# [
# self.road_barrier_lyrx,
# "false",
# f"{self.road_barrier_gap} Meters",
# ],
]
print(f"Input barriers for RBC: {input_barriers_for_rbc}\n")

Expand Down
7 changes: 7 additions & 0 deletions file_manager/n100/file_manager_buildings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,3 +1239,10 @@ class Building_N100(Enum):
Piktogram = file_manager.generate_final_outputs(
file_name="Piktogram",
)

point_resolve_building_conflicts___new_workfile_managger___n100_building = (
file_manager.generate_file_name_gdb(
script_source_name=overview,
description="new_workfile_managger",
)
)
5 changes: 3 additions & 2 deletions generalization/n100/building/data_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ def data_selection():
}

small_local_selection = "navn IN ('Asker', 'Oslo', 'Ringerike')"
plot_area = "navn IN ('Asker', 'Bærum', 'Drammen', 'Frogn', 'Hole', 'Holmestrand', 'Horten', 'Jevnaker', 'Kongsberg', 'Larvik', 'Lier', 'Lunner', 'Modum', 'Nesodden', 'Oslo', 'Ringerike', 'Tønsberg', 'Øvre Eiker')"

selector = StudyAreaSelector(
input_output_file_dict=input_output_file_dict,
selecting_file=input_n100.AdminFlate,
selecting_sql_expression="navn IN ('Asker', 'Bærum', 'Drammen', 'Frogn', 'Hole', 'Holmestrand', 'Horten', 'Jevnaker', 'Kongsberg', 'Larvik', 'Lier', 'Lunner', 'Modum', 'Nesodden', 'Oslo', 'Ringerike', 'Tønsberg', 'Øvre Eiker')",
selecting_sql_expression=plot_area,
select_local=config.select_study_area,
)

Expand Down Expand Up @@ -307,7 +308,7 @@ def unsplit_roads_and_make_buffer():
write_work_files_to_memory=False,
keep_work_files=False,
root_file=Building_N100.data_preparation___root_file_line_symbology___n100_building.value,
fixed_buffer_addition=N100_Values.rbc_barrier_clearance_distance_m.value,
fixed_buffer_addition=0,
)
road_lines_to_buffer_symbology.run()

Expand Down
Loading

0 comments on commit a3d137d

Please sign in to comment.