Usage¶
Requirements Input Data¶
- Basemap verkehrslinie
- Opendata buildings
Configuration¶
The tool can be configured via the configuration file configs/config-infdb-basedata-ways.yaml. An example configuration is shown below:
configs/config-infdb-basedata-ways.yaml
infdb-basedata-ways:
config-infdb: "config-infdb.yml"
logging:
path: "infdb-basedata-ways.log"
level: "INFO"
hosts:
postgres:
user: None
password: None
db: None
host: None
exposed_port: None
epsg: 3035
data:
input_schema: opendata # (1)
output_schema: basedata # (2)
use_address_information: true # (3)
klasse_filter: # (4)
- "Wirtschaftsweg"
- "Hauptwirtschaftsweg"
- "Gemeindestraße"
- "Landesstraße, Staatsstraße"
- "Bundesstraße"
- "Bundesautobahn"
- "Kreisstraße"
klasse_objektart_filter: # (5)
"Bundesstraße":
- "Strassenachse"
- "Fahrbahnachse"
"Bundesautobahn":
- "Strassenachse"
apply_length_filter: True # (6)
min_length_meter: 10 # (7)
apply_loop_filter: True # (8)
apply_isolated_filter: True # (9)
input_schema: Name of the database schema from which the input data is read.output_schema: Name of the database schema to which the output tables are written.use_address_information: Boolean flag that enables the use of buildings address information during processing.klasse_filter: List of allowedklassevalues that are kept in the input road network.klasse_objektart_filter: Mapping fromklasseto a list of allowedobjektartvalues. This allows more specific filtering for selected road classes.apply_length_filter: Boolean flag that enables filtering of segments shorter than the configured minimum length.min_length_meter: Minimum segment length in meters. Segments shorter than this value are removed whenapply_length_filteris enabled.apply_loop_filter: Boolean flag that enables filtering of loop geometries.apply_isolated_filter: Boolean flag that enables filtering of isolated road segments that are not connected to the main network.
Run Single AGS¶
To run the tool for a single AGS, you can use the bash script tools/tools.sh:
Run Multiple AGS¶
The run_ags.py script allows you to run a profile or a single tool for multiple AGS in parallel. The script uses the uv to manage the python packages and dependencies.
# Single Tool
uv run python3 tools/run_ags.py -t infdb-basedata-ways [-a AGS1,AGS2,... -n NUM_WORKERS -c]