Import from hrd

Functions

_folder_contains_hrd_db(hrd_dir)

_ask_path_to_hrd_dir()

_add_hrd_locations_to_database(app_settings, hrd_dir)

_add_hrd_overschrijdingsfrequentielijnen(hrd_dir, ...)

_get_traject_id(hrd_dir)

Queries first the HRD for the integer ID of the traject.

_hlcd_file_path(hrd_dir)

_query_dijktrajecten(traject_id)

Queries the dijktrajecten.shp that was retrieved from the API of

_ask_is_bovenrivierengebied()

_add_traject_parameters(app_settings, hrd_dir)

import_from_hrd(app_settings)

Module Contents

_folder_contains_hrd_db(hrd_dir)
Parameters:

hrd_dir (str)

Return type:

bool

_ask_path_to_hrd_dir()
Return type:

str

_add_hrd_locations_to_database(app_settings, hrd_dir)
Parameters:
_add_hrd_overschrijdingsfrequentielijnen(hrd_dir, app_settings)
Parameters:
_get_traject_id(hrd_dir)

Queries first the HRD for the integer ID of the traject. Then queries the HLCD to find the textual traject ID.

Parameters:

hrd_dir (str)

Return type:

Tuple[int, str]

_hlcd_file_path(hrd_dir)
Parameters:

hrd_dir (str)

_query_dijktrajecten(traject_id)

Queries the dijktrajecten.shp that was retrieved from the API of the Waterveiligheidsportaal [1].

[1] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/fa4cc54e-26b3-4f25-b643-59458622901c

Parameters:

traject_id (str)

Return type:

Tuple[int, int]

_ask_is_bovenrivierengebied()
Return type:

bool

_add_traject_parameters(app_settings, hrd_dir)
Parameters:
import_from_hrd(app_settings)
Parameters:

app_settings (Applicationsettings)